implements
// @@protoc_insertion_point(builder_implements:iotexapi.BlockProducerInfo)
com.github.iotexproject.grpc.api.BlockProducerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -347,7 +403,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_BlockProducerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -356,22 +412,30 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.BlockProducerInfo.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
address_ = "";
+
votes_ = "";
+
active_ = false;
+
production_ = 0L;
+
return this;
}
@@ -398,27 +462,46 @@ public com.github.iotexproject.grpc.api.BlockProducerInfo build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.BlockProducerInfo buildPartial() {
com.github.iotexproject.grpc.api.BlockProducerInfo result = new com.github.iotexproject.grpc.api.BlockProducerInfo(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.address_ = address_;
+ result.votes_ = votes_;
+ result.active_ = active_;
+ result.production_ = production_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.BlockProducerInfo result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.address_ = address_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.votes_ = votes_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.active_ = active_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.production_ = production_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.BlockProducerInfo) {
@@ -433,12 +516,10 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.BlockProducerInfo othe
if (other == com.github.iotexproject.grpc.api.BlockProducerInfo.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getVotes().isEmpty()) {
votes_ = other.votes_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (other.getActive() != false) {
@@ -447,7 +528,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.BlockProducerInfo othe
if (other.getProduction() != 0L) {
setProduction(other.getProduction());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -462,53 +543,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.BlockProducerInfo parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- address_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- votes_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 24: {
- active_ = input.readBool();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- case 32: {
- production_ = input.readUInt64();
- bitField0_ |= 0x00000008;
- break;
- } // case 32
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.BlockProducerInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object address_ = "";
/**
@@ -551,9 +598,11 @@ public java.lang.String getAddress() {
*/
public Builder setAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -562,8 +611,8 @@ public Builder setAddress(
* @return This builder for chaining.
*/
public Builder clearAddress() {
+
address_ = getDefaultInstance().getAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -574,10 +623,12 @@ public Builder clearAddress() {
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -623,9 +674,11 @@ public java.lang.String getVotes() {
*/
public Builder setVotes(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
votes_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -634,8 +687,8 @@ public Builder setVotes(
* @return This builder for chaining.
*/
public Builder clearVotes() {
+
votes_ = getDefaultInstance().getVotes();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -646,10 +699,12 @@ public Builder clearVotes() {
*/
public Builder setVotesBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
votes_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -669,9 +724,8 @@ public boolean getActive() {
* @return This builder for chaining.
*/
public Builder setActive(boolean value) {
-
+
active_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -680,7 +734,7 @@ public Builder setActive(boolean value) {
* @return This builder for chaining.
*/
public Builder clearActive() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
active_ = false;
onChanged();
return this;
@@ -701,9 +755,8 @@ public long getProduction() {
* @return This builder for chaining.
*/
public Builder setProduction(long value) {
-
+
production_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -712,11 +765,23 @@ public Builder setProduction(long value) {
* @return This builder for chaining.
*/
public Builder clearProduction() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
production_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.BlockProducerInfo)
}
@@ -738,18 +803,7 @@ public BlockProducerInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new BlockProducerInfo(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/BlockProducerInfoOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/BlockProducerInfoOrBuilder.java
index b345e89..1381044 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/BlockProducerInfoOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/BlockProducerInfoOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/Bucket.java b/src/main/java/com/github/iotexproject/grpc/api/Bucket.java
index d2adaef..064766a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/Bucket.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/Bucket.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotexapi.Bucket}
*/
public final class Bucket extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.Bucket)
BucketOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Bucket.class.getName());
- }
// Use Bucket.newBuilder() to construct.
- private Bucket(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private Bucket(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Bucket() {
@@ -33,13 +22,86 @@ private Bucket() {
remainingDuration_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Bucket();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Bucket(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ voter_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ votes_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ weightedVotes_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remainingDuration_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_Bucket_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_Bucket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -47,8 +109,7 @@ private Bucket() {
}
public static final int VOTER_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object voter_ = "";
+ private volatile java.lang.Object voter_;
/**
*
* hex string
@@ -94,8 +155,7 @@ public java.lang.String getVoter() {
}
public static final int VOTES_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object votes_ = "";
+ private volatile java.lang.Object votes_;
/**
* string votes = 2;
* @return The votes.
@@ -133,8 +193,7 @@ public java.lang.String getVotes() {
}
public static final int WEIGHTEDVOTES_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private volatile java.lang.Object weightedVotes_ = "";
+ private volatile java.lang.Object weightedVotes_;
/**
* string weightedVotes = 3;
* @return The weightedVotes.
@@ -172,8 +231,7 @@ public java.lang.String getWeightedVotes() {
}
public static final int REMAININGDURATION_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private volatile java.lang.Object remainingDuration_ = "";
+ private volatile java.lang.Object remainingDuration_;
/**
*
* human readable duration
@@ -232,19 +290,19 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voter_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, voter_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, voter_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(votes_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, votes_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(votes_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, votes_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(weightedVotes_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, weightedVotes_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(weightedVotes_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, weightedVotes_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remainingDuration_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, remainingDuration_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainingDuration_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, remainingDuration_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -253,19 +311,19 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voter_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, voter_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, voter_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(votes_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, votes_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(votes_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, votes_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(weightedVotes_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, weightedVotes_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(weightedVotes_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, weightedVotes_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remainingDuration_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, remainingDuration_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainingDuration_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, remainingDuration_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -288,7 +346,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getWeightedVotes())) return false;
if (!getRemainingDuration()
.equals(other.getRemainingDuration())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -307,7 +365,7 @@ public int hashCode() {
hash = (53 * hash) + getWeightedVotes().hashCode();
hash = (37 * hash) + REMAININGDURATION_FIELD_NUMBER;
hash = (53 * hash) + getRemainingDuration().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -346,41 +404,39 @@ public static com.github.iotexproject.grpc.api.Bucket parseFrom(
}
public static com.github.iotexproject.grpc.api.Bucket parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.Bucket parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.Bucket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.Bucket parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.Bucket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.Bucket parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -400,7 +456,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -408,7 +464,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.Bucket}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.Bucket)
com.github.iotexproject.grpc.api.BucketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -417,7 +473,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_Bucket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -426,22 +482,30 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.Bucket.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
voter_ = "";
+
votes_ = "";
+
weightedVotes_ = "";
+
remainingDuration_ = "";
+
return this;
}
@@ -468,27 +532,46 @@ public com.github.iotexproject.grpc.api.Bucket build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.Bucket buildPartial() {
com.github.iotexproject.grpc.api.Bucket result = new com.github.iotexproject.grpc.api.Bucket(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.voter_ = voter_;
+ result.votes_ = votes_;
+ result.weightedVotes_ = weightedVotes_;
+ result.remainingDuration_ = remainingDuration_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.Bucket result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.voter_ = voter_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.votes_ = votes_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.weightedVotes_ = weightedVotes_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.remainingDuration_ = remainingDuration_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.Bucket) {
@@ -503,25 +586,21 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.Bucket other) {
if (other == com.github.iotexproject.grpc.api.Bucket.getDefaultInstance()) return this;
if (!other.getVoter().isEmpty()) {
voter_ = other.voter_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getVotes().isEmpty()) {
votes_ = other.votes_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getWeightedVotes().isEmpty()) {
weightedVotes_ = other.weightedVotes_;
- bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getRemainingDuration().isEmpty()) {
remainingDuration_ = other.remainingDuration_;
- bitField0_ |= 0x00000008;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -536,53 +615,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.Bucket parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- voter_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- votes_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- weightedVotes_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34: {
- remainingDuration_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.Bucket) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object voter_ = "";
/**
@@ -637,9 +682,11 @@ public java.lang.String getVoter() {
*/
public Builder setVoter(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
voter_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -652,8 +699,8 @@ public Builder setVoter(
* @return This builder for chaining.
*/
public Builder clearVoter() {
+
voter_ = getDefaultInstance().getVoter();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -668,10 +715,12 @@ public Builder clearVoter() {
*/
public Builder setVoterBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
voter_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -717,9 +766,11 @@ public java.lang.String getVotes() {
*/
public Builder setVotes(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
votes_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -728,8 +779,8 @@ public Builder setVotes(
* @return This builder for chaining.
*/
public Builder clearVotes() {
+
votes_ = getDefaultInstance().getVotes();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -740,10 +791,12 @@ public Builder clearVotes() {
*/
public Builder setVotesBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
votes_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -789,9 +842,11 @@ public java.lang.String getWeightedVotes() {
*/
public Builder setWeightedVotes(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
weightedVotes_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -800,8 +855,8 @@ public Builder setWeightedVotes(
* @return This builder for chaining.
*/
public Builder clearWeightedVotes() {
+
weightedVotes_ = getDefaultInstance().getWeightedVotes();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -812,10 +867,12 @@ public Builder clearWeightedVotes() {
*/
public Builder setWeightedVotesBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
weightedVotes_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -873,9 +930,11 @@ public java.lang.String getRemainingDuration() {
*/
public Builder setRemainingDuration(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
remainingDuration_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -888,8 +947,8 @@ public Builder setRemainingDuration(
* @return This builder for chaining.
*/
public Builder clearRemainingDuration() {
+
remainingDuration_ = getDefaultInstance().getRemainingDuration();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -904,13 +963,27 @@ public Builder clearRemainingDuration() {
*/
public Builder setRemainingDurationBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
remainingDuration_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.Bucket)
}
@@ -932,18 +1005,7 @@ public Bucket parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Bucket(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/BucketOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/BucketOrBuilder.java
index 420f518..4e9598a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/BucketOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/BucketOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequest.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequest.java
index 7d0975c..d5e275a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotexapi.EstimateActionGasConsumptionRequest}
*/
public final class EstimateActionGasConsumptionRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.EstimateActionGasConsumptionRequest)
EstimateActionGasConsumptionRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- EstimateActionGasConsumptionRequest.class.getName());
- }
// Use EstimateActionGasConsumptionRequest.newBuilder() to construct.
- private EstimateActionGasConsumptionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private EstimateActionGasConsumptionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EstimateActionGasConsumptionRequest() {
@@ -31,13 +20,284 @@ private EstimateActionGasConsumptionRequest() {
gasPrice_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new EstimateActionGasConsumptionRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EstimateActionGasConsumptionRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.Transfer.Builder subBuilder = null;
+ if (actionCase_ == 1) {
+ subBuilder = ((com.github.iotexproject.grpc.types.Transfer) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.Transfer.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.Transfer) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 1;
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.types.Execution.Builder subBuilder = null;
+ if (actionCase_ == 2) {
+ subBuilder = ((com.github.iotexproject.grpc.types.Execution) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.Execution.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.Execution) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 2;
+ break;
+ }
+ case 322: {
+ com.github.iotexproject.grpc.types.StakeCreate.Builder subBuilder = null;
+ if (actionCase_ == 40) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeCreate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeCreate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeCreate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 40;
+ break;
+ }
+ case 330: {
+ com.github.iotexproject.grpc.types.StakeReclaim.Builder subBuilder = null;
+ if (actionCase_ == 41) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeReclaim) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeReclaim.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeReclaim) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 41;
+ break;
+ }
+ case 338: {
+ com.github.iotexproject.grpc.types.StakeReclaim.Builder subBuilder = null;
+ if (actionCase_ == 42) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeReclaim) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeReclaim.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeReclaim) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 42;
+ break;
+ }
+ case 346: {
+ com.github.iotexproject.grpc.types.StakeAddDeposit.Builder subBuilder = null;
+ if (actionCase_ == 43) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeAddDeposit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeAddDeposit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeAddDeposit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 43;
+ break;
+ }
+ case 354: {
+ com.github.iotexproject.grpc.types.StakeRestake.Builder subBuilder = null;
+ if (actionCase_ == 44) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeRestake) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeRestake.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeRestake) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 44;
+ break;
+ }
+ case 362: {
+ com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder subBuilder = null;
+ if (actionCase_ == 45) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeChangeCandidate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeChangeCandidate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeChangeCandidate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 45;
+ break;
+ }
+ case 370: {
+ com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder subBuilder = null;
+ if (actionCase_ == 46) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeTransferOwnership) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeTransferOwnership.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeTransferOwnership) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 46;
+ break;
+ }
+ case 378: {
+ com.github.iotexproject.grpc.types.CandidateRegister.Builder subBuilder = null;
+ if (actionCase_ == 47) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateRegister) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateRegister.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateRegister) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 47;
+ break;
+ }
+ case 386: {
+ com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder subBuilder = null;
+ if (actionCase_ == 48) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateBasicInfo) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateBasicInfo.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateBasicInfo) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 48;
+ break;
+ }
+ case 394: {
+ com.github.iotexproject.grpc.types.CandidateActivate.Builder subBuilder = null;
+ if (actionCase_ == 49) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateActivate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateActivate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateActivate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 49;
+ break;
+ }
+ case 410: {
+ com.github.iotexproject.grpc.types.CandidateEndorsement.Builder subBuilder = null;
+ if (actionCase_ == 51) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateEndorsement) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateEndorsement.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateEndorsement) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 51;
+ break;
+ }
+ case 418: {
+ com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder subBuilder = null;
+ if (actionCase_ == 52) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateTransferOwnership) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateTransferOwnership.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateTransferOwnership) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 52;
+ break;
+ }
+ case 426: {
+ com.github.iotexproject.grpc.types.StakeMigrate.Builder subBuilder = null;
+ if (actionCase_ == 53) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeMigrate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeMigrate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeMigrate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 53;
+ break;
+ }
+ case 802: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ callerAddress_ = s;
+ break;
+ }
+ case 810: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gasPrice_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateActionGasConsumptionRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateActionGasConsumptionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -45,7 +305,6 @@ private EstimateActionGasConsumptionRequest() {
}
private int actionCase_ = 0;
- @SuppressWarnings("serial")
private java.lang.Object action_;
public enum ActionCase
implements com.google.protobuf.Internal.EnumLite,
@@ -590,8 +849,7 @@ public com.github.iotexproject.grpc.types.StakeMigrateOrBuilder getStakeMigrateO
}
public static final int CALLERADDRESS_FIELD_NUMBER = 100;
- @SuppressWarnings("serial")
- private volatile java.lang.Object callerAddress_ = "";
+ private volatile java.lang.Object callerAddress_;
/**
* string callerAddress = 100;
* @return The callerAddress.
@@ -629,8 +887,7 @@ public java.lang.String getCallerAddress() {
}
public static final int GASPRICE_FIELD_NUMBER = 101;
- @SuppressWarnings("serial")
- private volatile java.lang.Object gasPrice_ = "";
+ private volatile java.lang.Object gasPrice_;
/**
* string gasPrice = 101;
* @return The gasPrice.
@@ -726,13 +983,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (actionCase_ == 53) {
output.writeMessage(53, (com.github.iotexproject.grpc.types.StakeMigrate) action_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(callerAddress_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 100, callerAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 100, callerAddress_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasPrice_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 101, gasPrice_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasPrice_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 101, gasPrice_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -801,13 +1058,13 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(53, (com.github.iotexproject.grpc.types.StakeMigrate) action_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(callerAddress_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(100, callerAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, callerAddress_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasPrice_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(101, gasPrice_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasPrice_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, gasPrice_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -891,7 +1148,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -970,7 +1227,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1009,41 +1266,39 @@ public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionReque
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1063,7 +1318,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1071,7 +1326,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.EstimateActionGasConsumptionRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.EstimateActionGasConsumptionRequest)
com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1080,7 +1335,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateActionGasConsumptionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1089,65 +1344,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- if (transferBuilder_ != null) {
- transferBuilder_.clear();
- }
- if (executionBuilder_ != null) {
- executionBuilder_.clear();
- }
- if (stakeCreateBuilder_ != null) {
- stakeCreateBuilder_.clear();
- }
- if (stakeUnstakeBuilder_ != null) {
- stakeUnstakeBuilder_.clear();
- }
- if (stakeWithdrawBuilder_ != null) {
- stakeWithdrawBuilder_.clear();
- }
- if (stakeAddDepositBuilder_ != null) {
- stakeAddDepositBuilder_.clear();
- }
- if (stakeRestakeBuilder_ != null) {
- stakeRestakeBuilder_.clear();
- }
- if (stakeChangeCandidateBuilder_ != null) {
- stakeChangeCandidateBuilder_.clear();
- }
- if (stakeTransferOwnershipBuilder_ != null) {
- stakeTransferOwnershipBuilder_.clear();
- }
- if (candidateRegisterBuilder_ != null) {
- candidateRegisterBuilder_.clear();
- }
- if (candidateUpdateBuilder_ != null) {
- candidateUpdateBuilder_.clear();
- }
- if (candidateActivateBuilder_ != null) {
- candidateActivateBuilder_.clear();
- }
- if (candidateEndorsementBuilder_ != null) {
- candidateEndorsementBuilder_.clear();
- }
- if (candidateTransferOwnershipBuilder_ != null) {
- candidateTransferOwnershipBuilder_.clear();
- }
- if (stakeMigrateBuilder_ != null) {
- stakeMigrateBuilder_.clear();
- }
callerAddress_ = "";
+
gasPrice_ = "";
+
actionCase_ = 0;
action_ = null;
return this;
@@ -1176,87 +1392,150 @@ public com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest buil
@java.lang.Override
public com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest buildPartial() {
com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest result = new com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00008000) != 0)) {
- result.callerAddress_ = callerAddress_;
- }
- if (((from_bitField0_ & 0x00010000) != 0)) {
- result.gasPrice_ = gasPrice_;
- }
- }
-
- private void buildPartialOneofs(com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest result) {
- result.actionCase_ = actionCase_;
- result.action_ = this.action_;
- if (actionCase_ == 1 &&
- transferBuilder_ != null) {
- result.action_ = transferBuilder_.build();
+ if (actionCase_ == 1) {
+ if (transferBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = transferBuilder_.build();
+ }
}
- if (actionCase_ == 2 &&
- executionBuilder_ != null) {
- result.action_ = executionBuilder_.build();
+ if (actionCase_ == 2) {
+ if (executionBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = executionBuilder_.build();
+ }
}
- if (actionCase_ == 40 &&
- stakeCreateBuilder_ != null) {
- result.action_ = stakeCreateBuilder_.build();
+ if (actionCase_ == 40) {
+ if (stakeCreateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeCreateBuilder_.build();
+ }
}
- if (actionCase_ == 41 &&
- stakeUnstakeBuilder_ != null) {
- result.action_ = stakeUnstakeBuilder_.build();
+ if (actionCase_ == 41) {
+ if (stakeUnstakeBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeUnstakeBuilder_.build();
+ }
}
- if (actionCase_ == 42 &&
- stakeWithdrawBuilder_ != null) {
- result.action_ = stakeWithdrawBuilder_.build();
+ if (actionCase_ == 42) {
+ if (stakeWithdrawBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeWithdrawBuilder_.build();
+ }
}
- if (actionCase_ == 43 &&
- stakeAddDepositBuilder_ != null) {
- result.action_ = stakeAddDepositBuilder_.build();
+ if (actionCase_ == 43) {
+ if (stakeAddDepositBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeAddDepositBuilder_.build();
+ }
}
- if (actionCase_ == 44 &&
- stakeRestakeBuilder_ != null) {
- result.action_ = stakeRestakeBuilder_.build();
+ if (actionCase_ == 44) {
+ if (stakeRestakeBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeRestakeBuilder_.build();
+ }
}
- if (actionCase_ == 45 &&
- stakeChangeCandidateBuilder_ != null) {
- result.action_ = stakeChangeCandidateBuilder_.build();
+ if (actionCase_ == 45) {
+ if (stakeChangeCandidateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeChangeCandidateBuilder_.build();
+ }
}
- if (actionCase_ == 46 &&
- stakeTransferOwnershipBuilder_ != null) {
- result.action_ = stakeTransferOwnershipBuilder_.build();
+ if (actionCase_ == 46) {
+ if (stakeTransferOwnershipBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeTransferOwnershipBuilder_.build();
+ }
}
- if (actionCase_ == 47 &&
- candidateRegisterBuilder_ != null) {
- result.action_ = candidateRegisterBuilder_.build();
+ if (actionCase_ == 47) {
+ if (candidateRegisterBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateRegisterBuilder_.build();
+ }
}
- if (actionCase_ == 48 &&
- candidateUpdateBuilder_ != null) {
- result.action_ = candidateUpdateBuilder_.build();
+ if (actionCase_ == 48) {
+ if (candidateUpdateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateUpdateBuilder_.build();
+ }
}
- if (actionCase_ == 49 &&
- candidateActivateBuilder_ != null) {
- result.action_ = candidateActivateBuilder_.build();
+ if (actionCase_ == 49) {
+ if (candidateActivateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateActivateBuilder_.build();
+ }
}
- if (actionCase_ == 51 &&
- candidateEndorsementBuilder_ != null) {
- result.action_ = candidateEndorsementBuilder_.build();
+ if (actionCase_ == 51) {
+ if (candidateEndorsementBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateEndorsementBuilder_.build();
+ }
}
- if (actionCase_ == 52 &&
- candidateTransferOwnershipBuilder_ != null) {
- result.action_ = candidateTransferOwnershipBuilder_.build();
+ if (actionCase_ == 52) {
+ if (candidateTransferOwnershipBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateTransferOwnershipBuilder_.build();
+ }
}
- if (actionCase_ == 53 &&
- stakeMigrateBuilder_ != null) {
- result.action_ = stakeMigrateBuilder_.build();
+ if (actionCase_ == 53) {
+ if (stakeMigrateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeMigrateBuilder_.build();
+ }
}
+ result.callerAddress_ = callerAddress_;
+ result.gasPrice_ = gasPrice_;
+ result.actionCase_ = actionCase_;
+ onBuilt();
+ return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest) {
@@ -1271,12 +1550,10 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.EstimateActionGasConsu
if (other == com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest.getDefaultInstance()) return this;
if (!other.getCallerAddress().isEmpty()) {
callerAddress_ = other.callerAddress_;
- bitField0_ |= 0x00008000;
onChanged();
}
if (!other.getGasPrice().isEmpty()) {
gasPrice_ = other.gasPrice_;
- bitField0_ |= 0x00010000;
onChanged();
}
switch (other.getActionCase()) {
@@ -1344,7 +1621,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.EstimateActionGasConsu
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1359,145 +1636,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getTransferFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 1;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getExecutionFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 2;
- break;
- } // case 18
- case 322: {
- input.readMessage(
- getStakeCreateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 40;
- break;
- } // case 322
- case 330: {
- input.readMessage(
- getStakeUnstakeFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 41;
- break;
- } // case 330
- case 338: {
- input.readMessage(
- getStakeWithdrawFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 42;
- break;
- } // case 338
- case 346: {
- input.readMessage(
- getStakeAddDepositFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 43;
- break;
- } // case 346
- case 354: {
- input.readMessage(
- getStakeRestakeFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 44;
- break;
- } // case 354
- case 362: {
- input.readMessage(
- getStakeChangeCandidateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 45;
- break;
- } // case 362
- case 370: {
- input.readMessage(
- getStakeTransferOwnershipFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 46;
- break;
- } // case 370
- case 378: {
- input.readMessage(
- getCandidateRegisterFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 47;
- break;
- } // case 378
- case 386: {
- input.readMessage(
- getCandidateUpdateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 48;
- break;
- } // case 386
- case 394: {
- input.readMessage(
- getCandidateActivateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 49;
- break;
- } // case 394
- case 410: {
- input.readMessage(
- getCandidateEndorsementFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 51;
- break;
- } // case 410
- case 418: {
- input.readMessage(
- getCandidateTransferOwnershipFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 52;
- break;
- } // case 418
- case 426: {
- input.readMessage(
- getStakeMigrateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 53;
- break;
- } // case 426
- case 802: {
- callerAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00008000;
- break;
- } // case 802
- case 810: {
- gasPrice_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00010000;
- break;
- } // case 810
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int actionCase_ = 0;
@@ -1515,9 +1664,8 @@ public Builder clearAction() {
return this;
}
- private int bitField0_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Transfer, com.github.iotexproject.grpc.types.Transfer.Builder, com.github.iotexproject.grpc.types.TransferOrBuilder> transferBuilder_;
/**
* .iotextypes.Transfer transfer = 1;
@@ -1591,9 +1739,8 @@ public Builder mergeTransfer(com.github.iotexproject.grpc.types.Transfer value)
} else {
if (actionCase_ == 1) {
transferBuilder_.mergeFrom(value);
- } else {
- transferBuilder_.setMessage(value);
}
+ transferBuilder_.setMessage(value);
}
actionCase_ = 1;
return this;
@@ -1640,14 +1787,14 @@ public com.github.iotexproject.grpc.types.TransferOrBuilder getTransferOrBuilder
/**
* .iotextypes.Transfer transfer = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Transfer, com.github.iotexproject.grpc.types.Transfer.Builder, com.github.iotexproject.grpc.types.TransferOrBuilder>
getTransferFieldBuilder() {
if (transferBuilder_ == null) {
if (!(actionCase_ == 1)) {
action_ = com.github.iotexproject.grpc.types.Transfer.getDefaultInstance();
}
- transferBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Transfer, com.github.iotexproject.grpc.types.Transfer.Builder, com.github.iotexproject.grpc.types.TransferOrBuilder>(
(com.github.iotexproject.grpc.types.Transfer) action_,
getParentForChildren(),
@@ -1655,11 +1802,11 @@ public com.github.iotexproject.grpc.types.TransferOrBuilder getTransferOrBuilder
action_ = null;
}
actionCase_ = 1;
- onChanged();
+ onChanged();;
return transferBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder> executionBuilder_;
/**
* .iotextypes.Execution execution = 2;
@@ -1733,9 +1880,8 @@ public Builder mergeExecution(com.github.iotexproject.grpc.types.Execution value
} else {
if (actionCase_ == 2) {
executionBuilder_.mergeFrom(value);
- } else {
- executionBuilder_.setMessage(value);
}
+ executionBuilder_.setMessage(value);
}
actionCase_ = 2;
return this;
@@ -1782,14 +1928,14 @@ public com.github.iotexproject.grpc.types.ExecutionOrBuilder getExecutionOrBuild
/**
* .iotextypes.Execution execution = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder>
getExecutionFieldBuilder() {
if (executionBuilder_ == null) {
if (!(actionCase_ == 2)) {
action_ = com.github.iotexproject.grpc.types.Execution.getDefaultInstance();
}
- executionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder>(
(com.github.iotexproject.grpc.types.Execution) action_,
getParentForChildren(),
@@ -1797,11 +1943,11 @@ public com.github.iotexproject.grpc.types.ExecutionOrBuilder getExecutionOrBuild
action_ = null;
}
actionCase_ = 2;
- onChanged();
+ onChanged();;
return executionBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeCreate, com.github.iotexproject.grpc.types.StakeCreate.Builder, com.github.iotexproject.grpc.types.StakeCreateOrBuilder> stakeCreateBuilder_;
/**
*
@@ -1895,9 +2041,8 @@ public Builder mergeStakeCreate(com.github.iotexproject.grpc.types.StakeCreate v
} else {
if (actionCase_ == 40) {
stakeCreateBuilder_.mergeFrom(value);
- } else {
- stakeCreateBuilder_.setMessage(value);
}
+ stakeCreateBuilder_.setMessage(value);
}
actionCase_ = 40;
return this;
@@ -1960,14 +2105,14 @@ public com.github.iotexproject.grpc.types.StakeCreateOrBuilder getStakeCreateOrB
*
* .iotextypes.StakeCreate stakeCreate = 40;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeCreate, com.github.iotexproject.grpc.types.StakeCreate.Builder, com.github.iotexproject.grpc.types.StakeCreateOrBuilder>
getStakeCreateFieldBuilder() {
if (stakeCreateBuilder_ == null) {
if (!(actionCase_ == 40)) {
action_ = com.github.iotexproject.grpc.types.StakeCreate.getDefaultInstance();
}
- stakeCreateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeCreate, com.github.iotexproject.grpc.types.StakeCreate.Builder, com.github.iotexproject.grpc.types.StakeCreateOrBuilder>(
(com.github.iotexproject.grpc.types.StakeCreate) action_,
getParentForChildren(),
@@ -1975,11 +2120,11 @@ public com.github.iotexproject.grpc.types.StakeCreateOrBuilder getStakeCreateOrB
action_ = null;
}
actionCase_ = 40;
- onChanged();
+ onChanged();;
return stakeCreateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder> stakeUnstakeBuilder_;
/**
* .iotextypes.StakeReclaim stakeUnstake = 41;
@@ -2053,9 +2198,8 @@ public Builder mergeStakeUnstake(com.github.iotexproject.grpc.types.StakeReclaim
} else {
if (actionCase_ == 41) {
stakeUnstakeBuilder_.mergeFrom(value);
- } else {
- stakeUnstakeBuilder_.setMessage(value);
}
+ stakeUnstakeBuilder_.setMessage(value);
}
actionCase_ = 41;
return this;
@@ -2102,14 +2246,14 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeUnstakeO
/**
* .iotextypes.StakeReclaim stakeUnstake = 41;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>
getStakeUnstakeFieldBuilder() {
if (stakeUnstakeBuilder_ == null) {
if (!(actionCase_ == 41)) {
action_ = com.github.iotexproject.grpc.types.StakeReclaim.getDefaultInstance();
}
- stakeUnstakeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeUnstakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>(
(com.github.iotexproject.grpc.types.StakeReclaim) action_,
getParentForChildren(),
@@ -2117,11 +2261,11 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeUnstakeO
action_ = null;
}
actionCase_ = 41;
- onChanged();
+ onChanged();;
return stakeUnstakeBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder> stakeWithdrawBuilder_;
/**
* .iotextypes.StakeReclaim stakeWithdraw = 42;
@@ -2195,9 +2339,8 @@ public Builder mergeStakeWithdraw(com.github.iotexproject.grpc.types.StakeReclai
} else {
if (actionCase_ == 42) {
stakeWithdrawBuilder_.mergeFrom(value);
- } else {
- stakeWithdrawBuilder_.setMessage(value);
}
+ stakeWithdrawBuilder_.setMessage(value);
}
actionCase_ = 42;
return this;
@@ -2244,14 +2387,14 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeWithdraw
/**
* .iotextypes.StakeReclaim stakeWithdraw = 42;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>
getStakeWithdrawFieldBuilder() {
if (stakeWithdrawBuilder_ == null) {
if (!(actionCase_ == 42)) {
action_ = com.github.iotexproject.grpc.types.StakeReclaim.getDefaultInstance();
}
- stakeWithdrawBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeWithdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>(
(com.github.iotexproject.grpc.types.StakeReclaim) action_,
getParentForChildren(),
@@ -2259,11 +2402,11 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeWithdraw
action_ = null;
}
actionCase_ = 42;
- onChanged();
+ onChanged();;
return stakeWithdrawBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeAddDeposit, com.github.iotexproject.grpc.types.StakeAddDeposit.Builder, com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder> stakeAddDepositBuilder_;
/**
* .iotextypes.StakeAddDeposit stakeAddDeposit = 43;
@@ -2337,9 +2480,8 @@ public Builder mergeStakeAddDeposit(com.github.iotexproject.grpc.types.StakeAddD
} else {
if (actionCase_ == 43) {
stakeAddDepositBuilder_.mergeFrom(value);
- } else {
- stakeAddDepositBuilder_.setMessage(value);
}
+ stakeAddDepositBuilder_.setMessage(value);
}
actionCase_ = 43;
return this;
@@ -2386,14 +2528,14 @@ public com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder getStakeAddDe
/**
* .iotextypes.StakeAddDeposit stakeAddDeposit = 43;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeAddDeposit, com.github.iotexproject.grpc.types.StakeAddDeposit.Builder, com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder>
getStakeAddDepositFieldBuilder() {
if (stakeAddDepositBuilder_ == null) {
if (!(actionCase_ == 43)) {
action_ = com.github.iotexproject.grpc.types.StakeAddDeposit.getDefaultInstance();
}
- stakeAddDepositBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeAddDepositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeAddDeposit, com.github.iotexproject.grpc.types.StakeAddDeposit.Builder, com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder>(
(com.github.iotexproject.grpc.types.StakeAddDeposit) action_,
getParentForChildren(),
@@ -2401,11 +2543,11 @@ public com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder getStakeAddDe
action_ = null;
}
actionCase_ = 43;
- onChanged();
+ onChanged();;
return stakeAddDepositBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeRestake, com.github.iotexproject.grpc.types.StakeRestake.Builder, com.github.iotexproject.grpc.types.StakeRestakeOrBuilder> stakeRestakeBuilder_;
/**
* .iotextypes.StakeRestake stakeRestake = 44;
@@ -2479,9 +2621,8 @@ public Builder mergeStakeRestake(com.github.iotexproject.grpc.types.StakeRestake
} else {
if (actionCase_ == 44) {
stakeRestakeBuilder_.mergeFrom(value);
- } else {
- stakeRestakeBuilder_.setMessage(value);
}
+ stakeRestakeBuilder_.setMessage(value);
}
actionCase_ = 44;
return this;
@@ -2528,14 +2669,14 @@ public com.github.iotexproject.grpc.types.StakeRestakeOrBuilder getStakeRestakeO
/**
* .iotextypes.StakeRestake stakeRestake = 44;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeRestake, com.github.iotexproject.grpc.types.StakeRestake.Builder, com.github.iotexproject.grpc.types.StakeRestakeOrBuilder>
getStakeRestakeFieldBuilder() {
if (stakeRestakeBuilder_ == null) {
if (!(actionCase_ == 44)) {
action_ = com.github.iotexproject.grpc.types.StakeRestake.getDefaultInstance();
}
- stakeRestakeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeRestakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeRestake, com.github.iotexproject.grpc.types.StakeRestake.Builder, com.github.iotexproject.grpc.types.StakeRestakeOrBuilder>(
(com.github.iotexproject.grpc.types.StakeRestake) action_,
getParentForChildren(),
@@ -2543,11 +2684,11 @@ public com.github.iotexproject.grpc.types.StakeRestakeOrBuilder getStakeRestakeO
action_ = null;
}
actionCase_ = 44;
- onChanged();
+ onChanged();;
return stakeRestakeBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeChangeCandidate, com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder, com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder> stakeChangeCandidateBuilder_;
/**
* .iotextypes.StakeChangeCandidate stakeChangeCandidate = 45;
@@ -2621,9 +2762,8 @@ public Builder mergeStakeChangeCandidate(com.github.iotexproject.grpc.types.Stak
} else {
if (actionCase_ == 45) {
stakeChangeCandidateBuilder_.mergeFrom(value);
- } else {
- stakeChangeCandidateBuilder_.setMessage(value);
}
+ stakeChangeCandidateBuilder_.setMessage(value);
}
actionCase_ = 45;
return this;
@@ -2670,14 +2810,14 @@ public com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder getStake
/**
* .iotextypes.StakeChangeCandidate stakeChangeCandidate = 45;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeChangeCandidate, com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder, com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder>
getStakeChangeCandidateFieldBuilder() {
if (stakeChangeCandidateBuilder_ == null) {
if (!(actionCase_ == 45)) {
action_ = com.github.iotexproject.grpc.types.StakeChangeCandidate.getDefaultInstance();
}
- stakeChangeCandidateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeChangeCandidateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeChangeCandidate, com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder, com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder>(
(com.github.iotexproject.grpc.types.StakeChangeCandidate) action_,
getParentForChildren(),
@@ -2685,11 +2825,11 @@ public com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder getStake
action_ = null;
}
actionCase_ = 45;
- onChanged();
+ onChanged();;
return stakeChangeCandidateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeTransferOwnership, com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder, com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder> stakeTransferOwnershipBuilder_;
/**
* .iotextypes.StakeTransferOwnership stakeTransferOwnership = 46;
@@ -2763,9 +2903,8 @@ public Builder mergeStakeTransferOwnership(com.github.iotexproject.grpc.types.St
} else {
if (actionCase_ == 46) {
stakeTransferOwnershipBuilder_.mergeFrom(value);
- } else {
- stakeTransferOwnershipBuilder_.setMessage(value);
}
+ stakeTransferOwnershipBuilder_.setMessage(value);
}
actionCase_ = 46;
return this;
@@ -2812,14 +2951,14 @@ public com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder getSta
/**
* .iotextypes.StakeTransferOwnership stakeTransferOwnership = 46;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeTransferOwnership, com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder, com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder>
getStakeTransferOwnershipFieldBuilder() {
if (stakeTransferOwnershipBuilder_ == null) {
if (!(actionCase_ == 46)) {
action_ = com.github.iotexproject.grpc.types.StakeTransferOwnership.getDefaultInstance();
}
- stakeTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeTransferOwnership, com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder, com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder>(
(com.github.iotexproject.grpc.types.StakeTransferOwnership) action_,
getParentForChildren(),
@@ -2827,11 +2966,11 @@ public com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder getSta
action_ = null;
}
actionCase_ = 46;
- onChanged();
+ onChanged();;
return stakeTransferOwnershipBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateRegister, com.github.iotexproject.grpc.types.CandidateRegister.Builder, com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder> candidateRegisterBuilder_;
/**
* .iotextypes.CandidateRegister candidateRegister = 47;
@@ -2905,9 +3044,8 @@ public Builder mergeCandidateRegister(com.github.iotexproject.grpc.types.Candida
} else {
if (actionCase_ == 47) {
candidateRegisterBuilder_.mergeFrom(value);
- } else {
- candidateRegisterBuilder_.setMessage(value);
}
+ candidateRegisterBuilder_.setMessage(value);
}
actionCase_ = 47;
return this;
@@ -2954,14 +3092,14 @@ public com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder getCandidat
/**
* .iotextypes.CandidateRegister candidateRegister = 47;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateRegister, com.github.iotexproject.grpc.types.CandidateRegister.Builder, com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder>
getCandidateRegisterFieldBuilder() {
if (candidateRegisterBuilder_ == null) {
if (!(actionCase_ == 47)) {
action_ = com.github.iotexproject.grpc.types.CandidateRegister.getDefaultInstance();
}
- candidateRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateRegister, com.github.iotexproject.grpc.types.CandidateRegister.Builder, com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateRegister) action_,
getParentForChildren(),
@@ -2969,11 +3107,11 @@ public com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder getCandidat
action_ = null;
}
actionCase_ = 47;
- onChanged();
+ onChanged();;
return candidateRegisterBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateBasicInfo, com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder, com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder> candidateUpdateBuilder_;
/**
* .iotextypes.CandidateBasicInfo candidateUpdate = 48;
@@ -3047,9 +3185,8 @@ public Builder mergeCandidateUpdate(com.github.iotexproject.grpc.types.Candidate
} else {
if (actionCase_ == 48) {
candidateUpdateBuilder_.mergeFrom(value);
- } else {
- candidateUpdateBuilder_.setMessage(value);
}
+ candidateUpdateBuilder_.setMessage(value);
}
actionCase_ = 48;
return this;
@@ -3096,14 +3233,14 @@ public com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder getCandida
/**
* .iotextypes.CandidateBasicInfo candidateUpdate = 48;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateBasicInfo, com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder, com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder>
getCandidateUpdateFieldBuilder() {
if (candidateUpdateBuilder_ == null) {
if (!(actionCase_ == 48)) {
action_ = com.github.iotexproject.grpc.types.CandidateBasicInfo.getDefaultInstance();
}
- candidateUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateBasicInfo, com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder, com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateBasicInfo) action_,
getParentForChildren(),
@@ -3111,11 +3248,11 @@ public com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder getCandida
action_ = null;
}
actionCase_ = 48;
- onChanged();
+ onChanged();;
return candidateUpdateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateActivate, com.github.iotexproject.grpc.types.CandidateActivate.Builder, com.github.iotexproject.grpc.types.CandidateActivateOrBuilder> candidateActivateBuilder_;
/**
* .iotextypes.CandidateActivate candidateActivate = 49;
@@ -3189,9 +3326,8 @@ public Builder mergeCandidateActivate(com.github.iotexproject.grpc.types.Candida
} else {
if (actionCase_ == 49) {
candidateActivateBuilder_.mergeFrom(value);
- } else {
- candidateActivateBuilder_.setMessage(value);
}
+ candidateActivateBuilder_.setMessage(value);
}
actionCase_ = 49;
return this;
@@ -3238,14 +3374,14 @@ public com.github.iotexproject.grpc.types.CandidateActivateOrBuilder getCandidat
/**
* .iotextypes.CandidateActivate candidateActivate = 49;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateActivate, com.github.iotexproject.grpc.types.CandidateActivate.Builder, com.github.iotexproject.grpc.types.CandidateActivateOrBuilder>
getCandidateActivateFieldBuilder() {
if (candidateActivateBuilder_ == null) {
if (!(actionCase_ == 49)) {
action_ = com.github.iotexproject.grpc.types.CandidateActivate.getDefaultInstance();
}
- candidateActivateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateActivateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateActivate, com.github.iotexproject.grpc.types.CandidateActivate.Builder, com.github.iotexproject.grpc.types.CandidateActivateOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateActivate) action_,
getParentForChildren(),
@@ -3253,11 +3389,11 @@ public com.github.iotexproject.grpc.types.CandidateActivateOrBuilder getCandidat
action_ = null;
}
actionCase_ = 49;
- onChanged();
+ onChanged();;
return candidateActivateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateEndorsement, com.github.iotexproject.grpc.types.CandidateEndorsement.Builder, com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder> candidateEndorsementBuilder_;
/**
* .iotextypes.CandidateEndorsement candidateEndorsement = 51;
@@ -3331,9 +3467,8 @@ public Builder mergeCandidateEndorsement(com.github.iotexproject.grpc.types.Cand
} else {
if (actionCase_ == 51) {
candidateEndorsementBuilder_.mergeFrom(value);
- } else {
- candidateEndorsementBuilder_.setMessage(value);
}
+ candidateEndorsementBuilder_.setMessage(value);
}
actionCase_ = 51;
return this;
@@ -3380,14 +3515,14 @@ public com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder getCandi
/**
* .iotextypes.CandidateEndorsement candidateEndorsement = 51;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateEndorsement, com.github.iotexproject.grpc.types.CandidateEndorsement.Builder, com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder>
getCandidateEndorsementFieldBuilder() {
if (candidateEndorsementBuilder_ == null) {
if (!(actionCase_ == 51)) {
action_ = com.github.iotexproject.grpc.types.CandidateEndorsement.getDefaultInstance();
}
- candidateEndorsementBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateEndorsementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateEndorsement, com.github.iotexproject.grpc.types.CandidateEndorsement.Builder, com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateEndorsement) action_,
getParentForChildren(),
@@ -3395,11 +3530,11 @@ public com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder getCandi
action_ = null;
}
actionCase_ = 51;
- onChanged();
+ onChanged();;
return candidateEndorsementBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateTransferOwnership, com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder, com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder> candidateTransferOwnershipBuilder_;
/**
* .iotextypes.CandidateTransferOwnership candidateTransferOwnership = 52;
@@ -3473,9 +3608,8 @@ public Builder mergeCandidateTransferOwnership(com.github.iotexproject.grpc.type
} else {
if (actionCase_ == 52) {
candidateTransferOwnershipBuilder_.mergeFrom(value);
- } else {
- candidateTransferOwnershipBuilder_.setMessage(value);
}
+ candidateTransferOwnershipBuilder_.setMessage(value);
}
actionCase_ = 52;
return this;
@@ -3522,14 +3656,14 @@ public com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder ge
/**
* .iotextypes.CandidateTransferOwnership candidateTransferOwnership = 52;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateTransferOwnership, com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder, com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder>
getCandidateTransferOwnershipFieldBuilder() {
if (candidateTransferOwnershipBuilder_ == null) {
if (!(actionCase_ == 52)) {
action_ = com.github.iotexproject.grpc.types.CandidateTransferOwnership.getDefaultInstance();
}
- candidateTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateTransferOwnership, com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder, com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateTransferOwnership) action_,
getParentForChildren(),
@@ -3537,11 +3671,11 @@ public com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder ge
action_ = null;
}
actionCase_ = 52;
- onChanged();
+ onChanged();;
return candidateTransferOwnershipBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeMigrate, com.github.iotexproject.grpc.types.StakeMigrate.Builder, com.github.iotexproject.grpc.types.StakeMigrateOrBuilder> stakeMigrateBuilder_;
/**
* .iotextypes.StakeMigrate stakeMigrate = 53;
@@ -3615,9 +3749,8 @@ public Builder mergeStakeMigrate(com.github.iotexproject.grpc.types.StakeMigrate
} else {
if (actionCase_ == 53) {
stakeMigrateBuilder_.mergeFrom(value);
- } else {
- stakeMigrateBuilder_.setMessage(value);
}
+ stakeMigrateBuilder_.setMessage(value);
}
actionCase_ = 53;
return this;
@@ -3664,14 +3797,14 @@ public com.github.iotexproject.grpc.types.StakeMigrateOrBuilder getStakeMigrateO
/**
* .iotextypes.StakeMigrate stakeMigrate = 53;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeMigrate, com.github.iotexproject.grpc.types.StakeMigrate.Builder, com.github.iotexproject.grpc.types.StakeMigrateOrBuilder>
getStakeMigrateFieldBuilder() {
if (stakeMigrateBuilder_ == null) {
if (!(actionCase_ == 53)) {
action_ = com.github.iotexproject.grpc.types.StakeMigrate.getDefaultInstance();
}
- stakeMigrateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeMigrateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeMigrate, com.github.iotexproject.grpc.types.StakeMigrate.Builder, com.github.iotexproject.grpc.types.StakeMigrateOrBuilder>(
(com.github.iotexproject.grpc.types.StakeMigrate) action_,
getParentForChildren(),
@@ -3679,7 +3812,7 @@ public com.github.iotexproject.grpc.types.StakeMigrateOrBuilder getStakeMigrateO
action_ = null;
}
actionCase_ = 53;
- onChanged();
+ onChanged();;
return stakeMigrateBuilder_;
}
@@ -3724,9 +3857,11 @@ public java.lang.String getCallerAddress() {
*/
public Builder setCallerAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
callerAddress_ = value;
- bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -3735,8 +3870,8 @@ public Builder setCallerAddress(
* @return This builder for chaining.
*/
public Builder clearCallerAddress() {
+
callerAddress_ = getDefaultInstance().getCallerAddress();
- bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
@@ -3747,10 +3882,12 @@ public Builder clearCallerAddress() {
*/
public Builder setCallerAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
callerAddress_ = value;
- bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -3796,9 +3933,11 @@ public java.lang.String getGasPrice() {
*/
public Builder setGasPrice(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
gasPrice_ = value;
- bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -3807,8 +3946,8 @@ public Builder setGasPrice(
* @return This builder for chaining.
*/
public Builder clearGasPrice() {
+
gasPrice_ = getDefaultInstance().getGasPrice();
- bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
@@ -3819,13 +3958,27 @@ public Builder clearGasPrice() {
*/
public Builder setGasPriceBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
gasPrice_ = value;
- bitField0_ |= 0x00010000;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.EstimateActionGasConsumptionRequest)
}
@@ -3847,18 +4000,7 @@ public EstimateActionGasConsumptionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new EstimateActionGasConsumptionRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequestOrBuilder.java
index b400e25..b66d0f7 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -270,5 +268,5 @@ public interface EstimateActionGasConsumptionRequestOrBuilder extends
com.google.protobuf.ByteString
getGasPriceBytes();
- com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest.ActionCase getActionCase();
+ public com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRequest.ActionCase getActionCase();
}
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponse.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponse.java
index 2ad86cc..624633f 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,78 @@
* Protobuf type {@code iotexapi.EstimateActionGasConsumptionResponse}
*/
public final class EstimateActionGasConsumptionResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.EstimateActionGasConsumptionResponse)
EstimateActionGasConsumptionResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- EstimateActionGasConsumptionResponse.class.getName());
- }
// Use EstimateActionGasConsumptionResponse.newBuilder() to construct.
- private EstimateActionGasConsumptionResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private EstimateActionGasConsumptionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EstimateActionGasConsumptionResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new EstimateActionGasConsumptionResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EstimateActionGasConsumptionResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ gas_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateActionGasConsumptionResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateActionGasConsumptionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +86,7 @@ private EstimateActionGasConsumptionResponse() {
}
public static final int GAS_FIELD_NUMBER = 1;
- private long gas_ = 0L;
+ private long gas_;
/**
* uint64 gas = 1;
* @return The gas.
@@ -70,7 +113,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (gas_ != 0L) {
output.writeUInt64(1, gas_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -83,7 +126,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, gas_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -100,7 +143,7 @@ public boolean equals(final java.lang.Object obj) {
if (getGas()
!= other.getGas()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (37 * hash) + GAS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGas());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionRespo
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.EstimateActionGasConsumptionResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.EstimateActionGasConsumptionResponse)
com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateActionGasConsumptionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
gas_ = 0L;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse bui
@java.lang.Override
public com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse buildPartial() {
com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse result = new com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.gas_ = gas_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.gas_ = gas_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.EstimateActionGasConsu
if (other.getGas() != 0L) {
setGas(other.getGas());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- gas_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.EstimateActionGasConsumptionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long gas_ ;
/**
@@ -362,9 +414,8 @@ public long getGas() {
* @return This builder for chaining.
*/
public Builder setGas(long value) {
-
+
gas_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +424,23 @@ public Builder setGas(long value) {
* @return This builder for chaining.
*/
public Builder clearGas() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
gas_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.EstimateActionGasConsumptionResponse)
}
@@ -399,18 +462,7 @@ public EstimateActionGasConsumptionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new EstimateActionGasConsumptionResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponseOrBuilder.java
index c978ed2..fddd882 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateActionGasConsumptionResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequest.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequest.java
index c13e6ba..5500540 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -13,40 +11,92 @@
* Protobuf type {@code iotexapi.EstimateGasForActionRequest}
*/
public final class EstimateGasForActionRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.EstimateGasForActionRequest)
EstimateGasForActionRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- EstimateGasForActionRequest.class.getName());
- }
// Use EstimateGasForActionRequest.newBuilder() to construct.
- private EstimateGasForActionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private EstimateGasForActionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EstimateGasForActionRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new EstimateGasForActionRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EstimateGasForActionRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.Action.Builder subBuilder = null;
+ if (action_ != null) {
+ subBuilder = action_.toBuilder();
+ }
+ action_ = input.readMessage(com.github.iotexproject.grpc.types.Action.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(action_);
+ action_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateGasForActionRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateGasForActionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.EstimateGasForActionRequest.class, com.github.iotexproject.grpc.api.EstimateGasForActionRequest.Builder.class);
}
- private int bitField0_;
public static final int ACTION_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.Action action_;
/**
@@ -55,7 +105,7 @@ private EstimateGasForActionRequest() {
*/
@java.lang.Override
public boolean hasAction() {
- return ((bitField0_ & 0x00000001) != 0);
+ return action_ != null;
}
/**
* .iotextypes.Action action = 1;
@@ -70,7 +120,7 @@ public com.github.iotexproject.grpc.types.Action getAction() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ActionOrBuilder getActionOrBuilder() {
- return action_ == null ? com.github.iotexproject.grpc.types.Action.getDefaultInstance() : action_;
+ return getAction();
}
private byte memoizedIsInitialized = -1;
@@ -87,10 +137,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (action_ != null) {
output.writeMessage(1, getAction());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -99,11 +149,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (action_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAction());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -123,7 +173,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getAction()
.equals(other.getAction())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -138,7 +188,7 @@ public int hashCode() {
hash = (37 * hash) + ACTION_FIELD_NUMBER;
hash = (53 * hash) + getAction().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -177,41 +227,39 @@ public static com.github.iotexproject.grpc.api.EstimateGasForActionRequest parse
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.EstimateGasForActionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.EstimateGasForActionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -231,7 +279,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -243,7 +291,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.EstimateGasForActionRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.EstimateGasForActionRequest)
com.github.iotexproject.grpc.api.EstimateGasForActionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -252,7 +300,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateGasForActionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,23 +313,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getActionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- action_ = null;
- if (actionBuilder_ != null) {
- actionBuilder_.dispose();
+ if (actionBuilder_ == null) {
+ action_ = null;
+ } else {
+ action_ = null;
actionBuilder_ = null;
}
return this;
@@ -310,23 +357,47 @@ public com.github.iotexproject.grpc.api.EstimateGasForActionRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.EstimateGasForActionRequest buildPartial() {
com.github.iotexproject.grpc.api.EstimateGasForActionRequest result = new com.github.iotexproject.grpc.api.EstimateGasForActionRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (actionBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = actionBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.EstimateGasForActionRequest result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.action_ = actionBuilder_ == null
- ? action_
- : actionBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.EstimateGasForActionRequest) {
@@ -342,7 +413,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.EstimateGasForActionRe
if (other.hasAction()) {
mergeAction(other.getAction());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -357,50 +428,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.EstimateGasForActionRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getActionFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.EstimateGasForActionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.Action action_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder> actionBuilder_;
/**
* .iotextypes.Action action = 1;
* @return Whether the action field is set.
*/
public boolean hasAction() {
- return ((bitField0_ & 0x00000001) != 0);
+ return actionBuilder_ != null || action_ != null;
}
/**
* .iotextypes.Action action = 1;
@@ -422,11 +472,11 @@ public Builder setAction(com.github.iotexproject.grpc.types.Action value) {
throw new NullPointerException();
}
action_ = value;
+ onChanged();
} else {
actionBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -436,11 +486,11 @@ public Builder setAction(
com.github.iotexproject.grpc.types.Action.Builder builderForValue) {
if (actionBuilder_ == null) {
action_ = builderForValue.build();
+ onChanged();
} else {
actionBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -448,40 +498,38 @@ public Builder setAction(
*/
public Builder mergeAction(com.github.iotexproject.grpc.types.Action value) {
if (actionBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- action_ != null &&
- action_ != com.github.iotexproject.grpc.types.Action.getDefaultInstance()) {
- getActionBuilder().mergeFrom(value);
+ if (action_ != null) {
+ action_ =
+ com.github.iotexproject.grpc.types.Action.newBuilder(action_).mergeFrom(value).buildPartial();
} else {
action_ = value;
}
+ onChanged();
} else {
actionBuilder_.mergeFrom(value);
}
- if (action_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.Action action = 1;
*/
public Builder clearAction() {
- bitField0_ = (bitField0_ & ~0x00000001);
- action_ = null;
- if (actionBuilder_ != null) {
- actionBuilder_.dispose();
+ if (actionBuilder_ == null) {
+ action_ = null;
+ onChanged();
+ } else {
+ action_ = null;
actionBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.Action action = 1;
*/
public com.github.iotexproject.grpc.types.Action.Builder getActionBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getActionFieldBuilder().getBuilder();
}
@@ -499,11 +547,11 @@ public com.github.iotexproject.grpc.types.ActionOrBuilder getActionOrBuilder() {
/**
* .iotextypes.Action action = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder>
getActionFieldBuilder() {
if (actionBuilder_ == null) {
- actionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder>(
getAction(),
getParentForChildren(),
@@ -512,6 +560,18 @@ public com.github.iotexproject.grpc.types.ActionOrBuilder getActionOrBuilder() {
}
return actionBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.EstimateGasForActionRequest)
}
@@ -533,18 +593,7 @@ public EstimateGasForActionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new EstimateGasForActionRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequestOrBuilder.java
index 01c0858..af23336 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponse.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponse.java
index 5538245..7e20db5 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,78 @@
* Protobuf type {@code iotexapi.EstimateGasForActionResponse}
*/
public final class EstimateGasForActionResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.EstimateGasForActionResponse)
EstimateGasForActionResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- EstimateGasForActionResponse.class.getName());
- }
// Use EstimateGasForActionResponse.newBuilder() to construct.
- private EstimateGasForActionResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private EstimateGasForActionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EstimateGasForActionResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new EstimateGasForActionResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EstimateGasForActionResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ gas_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateGasForActionResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateGasForActionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +86,7 @@ private EstimateGasForActionResponse() {
}
public static final int GAS_FIELD_NUMBER = 1;
- private long gas_ = 0L;
+ private long gas_;
/**
* uint64 gas = 1;
* @return The gas.
@@ -70,7 +113,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (gas_ != 0L) {
output.writeUInt64(1, gas_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -83,7 +126,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, gas_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -100,7 +143,7 @@ public boolean equals(final java.lang.Object obj) {
if (getGas()
!= other.getGas()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (37 * hash) + GAS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGas());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.api.EstimateGasForActionResponse pars
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.EstimateGasForActionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.EstimateGasForActionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.EstimateGasForActionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.EstimateGasForActionResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.EstimateGasForActionResponse)
com.github.iotexproject.grpc.api.EstimateGasForActionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_EstimateGasForActionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.EstimateGasForActionResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
gas_ = 0L;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.api.EstimateGasForActionResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.EstimateGasForActionResponse buildPartial() {
com.github.iotexproject.grpc.api.EstimateGasForActionResponse result = new com.github.iotexproject.grpc.api.EstimateGasForActionResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.gas_ = gas_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.EstimateGasForActionResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.gas_ = gas_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.EstimateGasForActionResponse) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.EstimateGasForActionRe
if (other.getGas() != 0L) {
setGas(other.getGas());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.EstimateGasForActionResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- gas_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.EstimateGasForActionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long gas_ ;
/**
@@ -362,9 +414,8 @@ public long getGas() {
* @return This builder for chaining.
*/
public Builder setGas(long value) {
-
+
gas_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +424,23 @@ public Builder setGas(long value) {
* @return This builder for chaining.
*/
public Builder clearGas() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
gas_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.EstimateGasForActionResponse)
}
@@ -399,18 +462,7 @@ public EstimateGasForActionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new EstimateGasForActionResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponseOrBuilder.java
index 2da408e..6988478 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/EstimateGasForActionResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequest.java
index e52f532..9eeedfc 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.GetAccountRequest}
*/
public final class GetAccountRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetAccountRequest)
GetAccountRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetAccountRequest.class.getName());
- }
// Use GetAccountRequest.newBuilder() to construct.
- private GetAccountRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAccountRequest() {
address_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetAccountRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetAccountRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ address_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetAccountRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +88,7 @@ private GetAccountRequest() {
}
public static final int ADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object address_ = "";
+ private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
@@ -96,10 +139,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -108,10 +151,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -128,7 +171,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getAddress()
.equals(other.getAddress())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -141,7 +184,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -180,41 +223,39 @@ public static com.github.iotexproject.grpc.api.GetAccountRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetAccountRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetAccountRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetAccountRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetAccountRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetAccountRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetAccountRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -234,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -242,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetAccountRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetAccountRequest)
com.github.iotexproject.grpc.api.GetAccountRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -251,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -260,19 +301,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetAccountRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
address_ = "";
+
return this;
}
@@ -299,18 +345,43 @@ public com.github.iotexproject.grpc.api.GetAccountRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetAccountRequest buildPartial() {
com.github.iotexproject.grpc.api.GetAccountRequest result = new com.github.iotexproject.grpc.api.GetAccountRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.address_ = address_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetAccountRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.address_ = address_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetAccountRequest) {
@@ -325,10 +396,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetAccountRequest othe
if (other == com.github.iotexproject.grpc.api.GetAccountRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -343,38 +413,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetAccountRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- address_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetAccountRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object address_ = "";
/**
@@ -417,9 +468,11 @@ public java.lang.String getAddress() {
*/
public Builder setAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -428,8 +481,8 @@ public Builder setAddress(
* @return This builder for chaining.
*/
public Builder clearAddress() {
+
address_ = getDefaultInstance().getAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -440,13 +493,27 @@ public Builder clearAddress() {
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetAccountRequest)
}
@@ -468,18 +535,7 @@ public GetAccountRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetAccountRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequestOrBuilder.java
index a57e3bc..281f211 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetAccountRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponse.java
index 38631c1..65bab29 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,105 @@
* Protobuf type {@code iotexapi.GetAccountResponse}
*/
public final class GetAccountResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetAccountResponse)
GetAccountResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetAccountResponse.class.getName());
- }
// Use GetAccountResponse.newBuilder() to construct.
- private GetAccountResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAccountResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetAccountResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetAccountResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.AccountMeta.Builder subBuilder = null;
+ if (accountMeta_ != null) {
+ subBuilder = accountMeta_.toBuilder();
+ }
+ accountMeta_ = input.readMessage(com.github.iotexproject.grpc.types.AccountMeta.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(accountMeta_);
+ accountMeta_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.types.BlockIdentifier.Builder subBuilder = null;
+ if (blockIdentifier_ != null) {
+ subBuilder = blockIdentifier_.toBuilder();
+ }
+ blockIdentifier_ = input.readMessage(com.github.iotexproject.grpc.types.BlockIdentifier.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(blockIdentifier_);
+ blockIdentifier_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetAccountResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetAccountResponse.class, com.github.iotexproject.grpc.api.GetAccountResponse.Builder.class);
}
- private int bitField0_;
public static final int ACCOUNTMETA_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.AccountMeta accountMeta_;
/**
@@ -51,7 +114,7 @@ private GetAccountResponse() {
*/
@java.lang.Override
public boolean hasAccountMeta() {
- return ((bitField0_ & 0x00000001) != 0);
+ return accountMeta_ != null;
}
/**
* .iotextypes.AccountMeta accountMeta = 1;
@@ -66,7 +129,7 @@ public com.github.iotexproject.grpc.types.AccountMeta getAccountMeta() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.AccountMetaOrBuilder getAccountMetaOrBuilder() {
- return accountMeta_ == null ? com.github.iotexproject.grpc.types.AccountMeta.getDefaultInstance() : accountMeta_;
+ return getAccountMeta();
}
public static final int BLOCKIDENTIFIER_FIELD_NUMBER = 2;
@@ -77,7 +140,7 @@ public com.github.iotexproject.grpc.types.AccountMetaOrBuilder getAccountMetaOrB
*/
@java.lang.Override
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000002) != 0);
+ return blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -92,7 +155,7 @@ public com.github.iotexproject.grpc.types.BlockIdentifier getBlockIdentifier() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdentifierOrBuilder() {
- return blockIdentifier_ == null ? com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance() : blockIdentifier_;
+ return getBlockIdentifier();
}
private byte memoizedIsInitialized = -1;
@@ -109,13 +172,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (accountMeta_ != null) {
output.writeMessage(1, getAccountMeta());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (blockIdentifier_ != null) {
output.writeMessage(2, getBlockIdentifier());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -124,15 +187,15 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (accountMeta_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccountMeta());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (blockIdentifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBlockIdentifier());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -157,7 +220,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlockIdentifier()
.equals(other.getBlockIdentifier())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -176,7 +239,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getBlockIdentifier().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -215,41 +278,39 @@ public static com.github.iotexproject.grpc.api.GetAccountResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetAccountResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetAccountResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetAccountResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetAccountResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetAccountResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetAccountResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -269,7 +330,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -277,7 +338,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetAccountResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetAccountResponse)
com.github.iotexproject.grpc.api.GetAccountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -286,7 +347,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -299,29 +360,28 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getAccountMetaFieldBuilder();
- getBlockIdentifierFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- accountMeta_ = null;
- if (accountMetaBuilder_ != null) {
- accountMetaBuilder_.dispose();
+ if (accountMetaBuilder_ == null) {
+ accountMeta_ = null;
+ } else {
+ accountMeta_ = null;
accountMetaBuilder_ = null;
}
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
return this;
@@ -350,29 +410,52 @@ public com.github.iotexproject.grpc.api.GetAccountResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetAccountResponse buildPartial() {
com.github.iotexproject.grpc.api.GetAccountResponse result = new com.github.iotexproject.grpc.api.GetAccountResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (accountMetaBuilder_ == null) {
+ result.accountMeta_ = accountMeta_;
+ } else {
+ result.accountMeta_ = accountMetaBuilder_.build();
+ }
+ if (blockIdentifierBuilder_ == null) {
+ result.blockIdentifier_ = blockIdentifier_;
+ } else {
+ result.blockIdentifier_ = blockIdentifierBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetAccountResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.accountMeta_ = accountMetaBuilder_ == null
- ? accountMeta_
- : accountMetaBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.blockIdentifier_ = blockIdentifierBuilder_ == null
- ? blockIdentifier_
- : blockIdentifierBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetAccountResponse) {
@@ -391,7 +474,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetAccountResponse oth
if (other.hasBlockIdentifier()) {
mergeBlockIdentifier(other.getBlockIdentifier());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -406,57 +489,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetAccountResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getAccountMetaFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getBlockIdentifierFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetAccountResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.AccountMeta accountMeta_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.AccountMeta, com.github.iotexproject.grpc.types.AccountMeta.Builder, com.github.iotexproject.grpc.types.AccountMetaOrBuilder> accountMetaBuilder_;
/**
* .iotextypes.AccountMeta accountMeta = 1;
* @return Whether the accountMeta field is set.
*/
public boolean hasAccountMeta() {
- return ((bitField0_ & 0x00000001) != 0);
+ return accountMetaBuilder_ != null || accountMeta_ != null;
}
/**
* .iotextypes.AccountMeta accountMeta = 1;
@@ -478,11 +533,11 @@ public Builder setAccountMeta(com.github.iotexproject.grpc.types.AccountMeta val
throw new NullPointerException();
}
accountMeta_ = value;
+ onChanged();
} else {
accountMetaBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -492,11 +547,11 @@ public Builder setAccountMeta(
com.github.iotexproject.grpc.types.AccountMeta.Builder builderForValue) {
if (accountMetaBuilder_ == null) {
accountMeta_ = builderForValue.build();
+ onChanged();
} else {
accountMetaBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -504,40 +559,38 @@ public Builder setAccountMeta(
*/
public Builder mergeAccountMeta(com.github.iotexproject.grpc.types.AccountMeta value) {
if (accountMetaBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- accountMeta_ != null &&
- accountMeta_ != com.github.iotexproject.grpc.types.AccountMeta.getDefaultInstance()) {
- getAccountMetaBuilder().mergeFrom(value);
+ if (accountMeta_ != null) {
+ accountMeta_ =
+ com.github.iotexproject.grpc.types.AccountMeta.newBuilder(accountMeta_).mergeFrom(value).buildPartial();
} else {
accountMeta_ = value;
}
+ onChanged();
} else {
accountMetaBuilder_.mergeFrom(value);
}
- if (accountMeta_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.AccountMeta accountMeta = 1;
*/
public Builder clearAccountMeta() {
- bitField0_ = (bitField0_ & ~0x00000001);
- accountMeta_ = null;
- if (accountMetaBuilder_ != null) {
- accountMetaBuilder_.dispose();
+ if (accountMetaBuilder_ == null) {
+ accountMeta_ = null;
+ onChanged();
+ } else {
+ accountMeta_ = null;
accountMetaBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.AccountMeta accountMeta = 1;
*/
public com.github.iotexproject.grpc.types.AccountMeta.Builder getAccountMetaBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getAccountMetaFieldBuilder().getBuilder();
}
@@ -555,11 +608,11 @@ public com.github.iotexproject.grpc.types.AccountMetaOrBuilder getAccountMetaOrB
/**
* .iotextypes.AccountMeta accountMeta = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.AccountMeta, com.github.iotexproject.grpc.types.AccountMeta.Builder, com.github.iotexproject.grpc.types.AccountMetaOrBuilder>
getAccountMetaFieldBuilder() {
if (accountMetaBuilder_ == null) {
- accountMetaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ accountMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.AccountMeta, com.github.iotexproject.grpc.types.AccountMeta.Builder, com.github.iotexproject.grpc.types.AccountMetaOrBuilder>(
getAccountMeta(),
getParentForChildren(),
@@ -570,14 +623,14 @@ public com.github.iotexproject.grpc.types.AccountMetaOrBuilder getAccountMetaOrB
}
private com.github.iotexproject.grpc.types.BlockIdentifier blockIdentifier_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder> blockIdentifierBuilder_;
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
* @return Whether the blockIdentifier field is set.
*/
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000002) != 0);
+ return blockIdentifierBuilder_ != null || blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -599,11 +652,11 @@ public Builder setBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdenti
throw new NullPointerException();
}
blockIdentifier_ = value;
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -613,11 +666,11 @@ public Builder setBlockIdentifier(
com.github.iotexproject.grpc.types.BlockIdentifier.Builder builderForValue) {
if (blockIdentifierBuilder_ == null) {
blockIdentifier_ = builderForValue.build();
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -625,40 +678,38 @@ public Builder setBlockIdentifier(
*/
public Builder mergeBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdentifier value) {
if (blockIdentifierBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- blockIdentifier_ != null &&
- blockIdentifier_ != com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance()) {
- getBlockIdentifierBuilder().mergeFrom(value);
+ if (blockIdentifier_ != null) {
+ blockIdentifier_ =
+ com.github.iotexproject.grpc.types.BlockIdentifier.newBuilder(blockIdentifier_).mergeFrom(value).buildPartial();
} else {
blockIdentifier_ = value;
}
+ onChanged();
} else {
blockIdentifierBuilder_.mergeFrom(value);
}
- if (blockIdentifier_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public Builder clearBlockIdentifier() {
- bitField0_ = (bitField0_ & ~0x00000002);
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ onChanged();
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public com.github.iotexproject.grpc.types.BlockIdentifier.Builder getBlockIdentifierBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getBlockIdentifierFieldBuilder().getBuilder();
}
@@ -676,11 +727,11 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>
getBlockIdentifierFieldBuilder() {
if (blockIdentifierBuilder_ == null) {
- blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>(
getBlockIdentifier(),
getParentForChildren(),
@@ -689,6 +740,18 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
}
return blockIdentifierBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetAccountResponse)
}
@@ -710,18 +773,7 @@ public GetAccountResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetAccountResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponseOrBuilder.java
index 0467b9b..b3210cd 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetAccountResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequest.java
index 46cae46..800336c 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,35 +7,87 @@
* Protobuf type {@code iotexapi.GetActPoolActionsRequest}
*/
public final class GetActPoolActionsRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActPoolActionsRequest)
GetActPoolActionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActPoolActionsRequest.class.getName());
- }
// Use GetActPoolActionsRequest.newBuilder() to construct.
- private GetActPoolActionsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActPoolActionsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActPoolActionsRequest() {
- actionHashes_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ actionHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActPoolActionsRequest();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActPoolActionsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ actionHashes_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ actionHashes_.add(s);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ actionHashes_ = actionHashes_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActPoolActionsRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActPoolActionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -45,9 +95,7 @@ private GetActPoolActionsRequest() {
}
public static final int ACTIONHASHES_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList actionHashes_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList actionHashes_;
/**
*
* if this field is absent, get all actions from actpool
@@ -112,9 +160,9 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < actionHashes_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, actionHashes_.getRaw(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionHashes_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -131,7 +179,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getActionHashesList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -148,7 +196,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionHashesList()
.equals(other.getActionHashesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -163,7 +211,7 @@ public int hashCode() {
hash = (37 * hash) + ACTIONHASHES_FIELD_NUMBER;
hash = (53 * hash) + getActionHashesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -202,41 +250,39 @@ public static com.github.iotexproject.grpc.api.GetActPoolActionsRequest parseFro
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActPoolActionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActPoolActionsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -256,7 +302,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -264,7 +310,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActPoolActionsRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActPoolActionsRequest)
com.github.iotexproject.grpc.api.GetActPoolActionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -273,7 +319,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActPoolActionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -282,20 +328,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActPoolActionsRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- actionHashes_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ actionHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -322,19 +372,48 @@ public com.github.iotexproject.grpc.api.GetActPoolActionsRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActPoolActionsRequest buildPartial() {
com.github.iotexproject.grpc.api.GetActPoolActionsRequest result = new com.github.iotexproject.grpc.api.GetActPoolActionsRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ actionHashes_ = actionHashes_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.actionHashes_ = actionHashes_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActPoolActionsRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- actionHashes_.makeImmutable();
- result.actionHashes_ = actionHashes_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActPoolActionsRequest) {
@@ -350,14 +429,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActPoolActionsReque
if (!other.actionHashes_.isEmpty()) {
if (actionHashes_.isEmpty()) {
actionHashes_ = other.actionHashes_;
- bitField0_ |= 0x00000001;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActionHashesIsMutable();
actionHashes_.addAll(other.actionHashes_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -372,47 +451,27 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActPoolActionsRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
- ensureActionHashesIsMutable();
- actionHashes_.add(s);
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActPoolActionsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
- private com.google.protobuf.LazyStringArrayList actionHashes_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList actionHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureActionHashesIsMutable() {
- if (!actionHashes_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
actionHashes_ = new com.google.protobuf.LazyStringArrayList(actionHashes_);
- }
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000001;
+ }
}
/**
*
@@ -424,8 +483,7 @@ private void ensureActionHashesIsMutable() {
*/
public com.google.protobuf.ProtocolStringList
getActionHashesList() {
- actionHashes_.makeImmutable();
- return actionHashes_;
+ return actionHashes_.getUnmodifiableView();
}
/**
*
@@ -475,10 +533,11 @@ public java.lang.String getActionHashes(int index) {
*/
public Builder setActionHashes(
int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureActionHashesIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionHashesIsMutable();
actionHashes_.set(index, value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -493,10 +552,11 @@ public Builder setActionHashes(
*/
public Builder addActionHashes(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureActionHashesIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionHashesIsMutable();
actionHashes_.add(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -514,7 +574,6 @@ public Builder addAllActionHashes(
ensureActionHashesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, actionHashes_);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -527,9 +586,8 @@ public Builder addAllActionHashes(
* @return This builder for chaining.
*/
public Builder clearActionHashes() {
- actionHashes_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);;
+ actionHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -544,14 +602,27 @@ public Builder clearActionHashes() {
*/
public Builder addActionHashesBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
ensureActionHashesIsMutable();
actionHashes_.add(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActPoolActionsRequest)
}
@@ -573,18 +644,7 @@ public GetActPoolActionsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActPoolActionsRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequestOrBuilder.java
index cc56203..232b3ef 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponse.java
index b1caee2..3374988 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,87 @@
* Protobuf type {@code iotexapi.GetActPoolActionsResponse}
*/
public final class GetActPoolActionsResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActPoolActionsResponse)
GetActPoolActionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActPoolActionsResponse.class.getName());
- }
// Use GetActPoolActionsResponse.newBuilder() to construct.
- private GetActPoolActionsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActPoolActionsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActPoolActionsResponse() {
actions_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActPoolActionsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActPoolActionsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ actions_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ actions_.add(
+ input.readMessage(com.github.iotexproject.grpc.types.Action.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ actions_ = java.util.Collections.unmodifiableList(actions_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActPoolActionsResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActPoolActionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +95,6 @@ private GetActPoolActionsResponse() {
}
public static final int ACTIONS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
private java.util.List actions_;
/**
* repeated .iotextypes.Action actions = 1;
@@ -101,7 +151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < actions_.size(); i++) {
output.writeMessage(1, actions_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -114,7 +164,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, actions_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -131,7 +181,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionsList()
.equals(other.getActionsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -146,7 +196,7 @@ public int hashCode() {
hash = (37 * hash) + ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getActionsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -185,41 +235,39 @@ public static com.github.iotexproject.grpc.api.GetActPoolActionsResponse parseFr
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActPoolActionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActPoolActionsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActPoolActionsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -239,7 +287,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -247,7 +295,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActPoolActionsResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActPoolActionsResponse)
com.github.iotexproject.grpc.api.GetActPoolActionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -256,7 +304,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActPoolActionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,25 +313,29 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActPoolActionsResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getActionsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (actionsBuilder_ == null) {
actions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- actions_ = null;
actionsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -310,13 +362,7 @@ public com.github.iotexproject.grpc.api.GetActPoolActionsResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActPoolActionsResponse buildPartial() {
com.github.iotexproject.grpc.api.GetActPoolActionsResponse result = new com.github.iotexproject.grpc.api.GetActPoolActionsResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetActPoolActionsResponse result) {
+ int from_bitField0_ = bitField0_;
if (actionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
actions_ = java.util.Collections.unmodifiableList(actions_);
@@ -326,12 +372,42 @@ private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetActP
} else {
result.actions_ = actionsBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActPoolActionsResponse result) {
- int from_bitField0_ = bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActPoolActionsResponse) {
@@ -363,14 +439,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActPoolActionsRespo
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000001);
actionsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getActionsFieldBuilder() : null;
} else {
actionsBuilder_.addAllMessages(other.actions_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -385,43 +461,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActPoolActionsResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.github.iotexproject.grpc.types.Action m =
- input.readMessage(
- com.github.iotexproject.grpc.types.Action.parser(),
- extensionRegistry);
- if (actionsBuilder_ == null) {
- ensureActionsIsMutable();
- actions_.add(m);
- } else {
- actionsBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActPoolActionsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -435,7 +485,7 @@ private void ensureActionsIsMutable() {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder> actionsBuilder_;
/**
@@ -651,11 +701,11 @@ public com.github.iotexproject.grpc.types.Action.Builder addActionsBuilder(
getActionsBuilderList() {
return getActionsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder>
getActionsFieldBuilder() {
if (actionsBuilder_ == null) {
- actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder>(
actions_,
((bitField0_ & 0x00000001) != 0),
@@ -665,6 +715,18 @@ public com.github.iotexproject.grpc.types.Action.Builder addActionsBuilder(
}
return actionsBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActPoolActionsResponse)
}
@@ -686,18 +748,7 @@ public GetActPoolActionsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActPoolActionsResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponseOrBuilder.java
index 1cfb3e5..80907e3 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActPoolActionsResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequest.java
index 43faad6..147e555 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,85 @@
* Protobuf type {@code iotexapi.GetActionByHashRequest}
*/
public final class GetActionByHashRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActionByHashRequest)
GetActionByHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActionByHashRequest.class.getName());
- }
// Use GetActionByHashRequest.newBuilder() to construct.
- private GetActionByHashRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActionByHashRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActionByHashRequest() {
actionHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActionByHashRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActionByHashRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ actionHash_ = s;
+ break;
+ }
+ case 16: {
+
+ checkPending_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionByHashRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +93,7 @@ private GetActionByHashRequest() {
}
public static final int ACTIONHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object actionHash_ = "";
+ private volatile java.lang.Object actionHash_;
/**
* string actionHash = 1;
* @return The actionHash.
@@ -83,7 +131,7 @@ public java.lang.String getActionHash() {
}
public static final int CHECKPENDING_FIELD_NUMBER = 2;
- private boolean checkPending_ = false;
+ private boolean checkPending_;
/**
* bool checkPending = 2;
* @return The checkPending.
@@ -107,13 +155,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionHash_);
}
if (checkPending_ != false) {
output.writeBool(2, checkPending_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -122,14 +170,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionHash_);
}
if (checkPending_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, checkPending_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -148,7 +196,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getActionHash())) return false;
if (getCheckPending()
!= other.getCheckPending()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -164,7 +212,7 @@ public int hashCode() {
hash = (37 * hash) + CHECKPENDING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCheckPending());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -203,41 +251,39 @@ public static com.github.iotexproject.grpc.api.GetActionByHashRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetActionByHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionByHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActionByHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActionByHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActionByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -257,7 +303,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -265,7 +311,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActionByHashRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActionByHashRequest)
com.github.iotexproject.grpc.api.GetActionByHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -274,7 +320,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -283,20 +329,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActionByHashRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
actionHash_ = "";
+
checkPending_ = false;
+
return this;
}
@@ -323,21 +375,44 @@ public com.github.iotexproject.grpc.api.GetActionByHashRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActionByHashRequest buildPartial() {
com.github.iotexproject.grpc.api.GetActionByHashRequest result = new com.github.iotexproject.grpc.api.GetActionByHashRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.actionHash_ = actionHash_;
+ result.checkPending_ = checkPending_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActionByHashRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionHash_ = actionHash_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.checkPending_ = checkPending_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActionByHashRequest) {
@@ -352,13 +427,12 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionByHashRequest
if (other == com.github.iotexproject.grpc.api.GetActionByHashRequest.getDefaultInstance()) return this;
if (!other.getActionHash().isEmpty()) {
actionHash_ = other.actionHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.getCheckPending() != false) {
setCheckPending(other.getCheckPending());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -373,43 +447,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActionByHashRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- actionHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16: {
- checkPending_ = input.readBool();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActionByHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object actionHash_ = "";
/**
@@ -452,9 +502,11 @@ public java.lang.String getActionHash() {
*/
public Builder setActionHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -463,8 +515,8 @@ public Builder setActionHash(
* @return This builder for chaining.
*/
public Builder clearActionHash() {
+
actionHash_ = getDefaultInstance().getActionHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -475,10 +527,12 @@ public Builder clearActionHash() {
*/
public Builder setActionHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -498,9 +552,8 @@ public boolean getCheckPending() {
* @return This builder for chaining.
*/
public Builder setCheckPending(boolean value) {
-
+
checkPending_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -509,11 +562,23 @@ public Builder setCheckPending(boolean value) {
* @return This builder for chaining.
*/
public Builder clearCheckPending() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
checkPending_ = false;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActionByHashRequest)
}
@@ -535,18 +600,7 @@ public GetActionByHashRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActionByHashRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequestOrBuilder.java
index 0e0204a..2414824 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionByHashRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequest.java
index b9d1fbc..e3627cb 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,90 @@
* Protobuf type {@code iotexapi.GetActionsByAddressRequest}
*/
public final class GetActionsByAddressRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActionsByAddressRequest)
GetActionsByAddressRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActionsByAddressRequest.class.getName());
- }
// Use GetActionsByAddressRequest.newBuilder() to construct.
- private GetActionsByAddressRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActionsByAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActionsByAddressRequest() {
address_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActionsByAddressRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActionsByAddressRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ address_ = s;
+ break;
+ }
+ case 16: {
+
+ start_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ count_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByAddressRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +98,7 @@ private GetActionsByAddressRequest() {
}
public static final int ADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object address_ = "";
+ private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
@@ -83,7 +136,7 @@ public java.lang.String getAddress() {
}
public static final int START_FIELD_NUMBER = 2;
- private long start_ = 0L;
+ private long start_;
/**
* uint64 start = 2;
* @return The start.
@@ -94,7 +147,7 @@ public long getStart() {
}
public static final int COUNT_FIELD_NUMBER = 3;
- private long count_ = 0L;
+ private long count_;
/**
* uint64 count = 3;
* @return The count.
@@ -118,8 +171,8 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (start_ != 0L) {
output.writeUInt64(2, start_);
@@ -127,7 +180,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (count_ != 0L) {
output.writeUInt64(3, count_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -136,8 +189,8 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (start_ != 0L) {
size += com.google.protobuf.CodedOutputStream
@@ -147,7 +200,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, count_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -168,7 +221,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getStart()) return false;
if (getCount()
!= other.getCount()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -187,7 +240,7 @@ public int hashCode() {
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -226,41 +279,39 @@ public static com.github.iotexproject.grpc.api.GetActionsByAddressRequest parseF
}
public static com.github.iotexproject.grpc.api.GetActionsByAddressRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsByAddressRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActionsByAddressRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActionsByAddressRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActionsByAddressRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsByAddressRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -280,7 +331,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -288,7 +339,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActionsByAddressRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActionsByAddressRequest)
com.github.iotexproject.grpc.api.GetActionsByAddressRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -297,7 +348,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -306,21 +357,28 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActionsByAddressRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
address_ = "";
+
start_ = 0L;
+
count_ = 0L;
+
return this;
}
@@ -347,24 +405,45 @@ public com.github.iotexproject.grpc.api.GetActionsByAddressRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActionsByAddressRequest buildPartial() {
com.github.iotexproject.grpc.api.GetActionsByAddressRequest result = new com.github.iotexproject.grpc.api.GetActionsByAddressRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.address_ = address_;
+ result.start_ = start_;
+ result.count_ = count_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActionsByAddressRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.address_ = address_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.start_ = start_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.count_ = count_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActionsByAddressRequest) {
@@ -379,7 +458,6 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsByAddressReq
if (other == com.github.iotexproject.grpc.api.GetActionsByAddressRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.getStart() != 0L) {
@@ -388,7 +466,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsByAddressReq
if (other.getCount() != 0L) {
setCount(other.getCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -403,48 +481,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActionsByAddressRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- address_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16: {
- start_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24: {
- count_ = input.readUInt64();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActionsByAddressRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object address_ = "";
/**
@@ -487,9 +536,11 @@ public java.lang.String getAddress() {
*/
public Builder setAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -498,8 +549,8 @@ public Builder setAddress(
* @return This builder for chaining.
*/
public Builder clearAddress() {
+
address_ = getDefaultInstance().getAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -510,10 +561,12 @@ public Builder clearAddress() {
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -533,9 +586,8 @@ public long getStart() {
* @return This builder for chaining.
*/
public Builder setStart(long value) {
-
+
start_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -544,7 +596,7 @@ public Builder setStart(long value) {
* @return This builder for chaining.
*/
public Builder clearStart() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
start_ = 0L;
onChanged();
return this;
@@ -565,9 +617,8 @@ public long getCount() {
* @return This builder for chaining.
*/
public Builder setCount(long value) {
-
+
count_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -576,11 +627,23 @@ public Builder setCount(long value) {
* @return This builder for chaining.
*/
public Builder clearCount() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
count_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActionsByAddressRequest)
}
@@ -602,18 +665,7 @@ public GetActionsByAddressRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActionsByAddressRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequestOrBuilder.java
index 5f50560..c4630bf 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByAddressRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequest.java
index 02a151a..ad5ae84 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,90 @@
* Protobuf type {@code iotexapi.GetActionsByBlockRequest}
*/
public final class GetActionsByBlockRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActionsByBlockRequest)
GetActionsByBlockRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActionsByBlockRequest.class.getName());
- }
// Use GetActionsByBlockRequest.newBuilder() to construct.
- private GetActionsByBlockRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActionsByBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActionsByBlockRequest() {
blkHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActionsByBlockRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActionsByBlockRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ blkHash_ = s;
+ break;
+ }
+ case 16: {
+
+ start_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ count_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByBlockRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +98,7 @@ private GetActionsByBlockRequest() {
}
public static final int BLKHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object blkHash_ = "";
+ private volatile java.lang.Object blkHash_;
/**
* string blkHash = 1;
* @return The blkHash.
@@ -83,7 +136,7 @@ public java.lang.String getBlkHash() {
}
public static final int START_FIELD_NUMBER = 2;
- private long start_ = 0L;
+ private long start_;
/**
* uint64 start = 2;
* @return The start.
@@ -94,7 +147,7 @@ public long getStart() {
}
public static final int COUNT_FIELD_NUMBER = 3;
- private long count_ = 0L;
+ private long count_;
/**
* uint64 count = 3;
* @return The count.
@@ -118,8 +171,8 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(blkHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, blkHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blkHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, blkHash_);
}
if (start_ != 0L) {
output.writeUInt64(2, start_);
@@ -127,7 +180,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (count_ != 0L) {
output.writeUInt64(3, count_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -136,8 +189,8 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(blkHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, blkHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blkHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, blkHash_);
}
if (start_ != 0L) {
size += com.google.protobuf.CodedOutputStream
@@ -147,7 +200,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, count_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -168,7 +221,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getStart()) return false;
if (getCount()
!= other.getCount()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -187,7 +240,7 @@ public int hashCode() {
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -226,41 +279,39 @@ public static com.github.iotexproject.grpc.api.GetActionsByBlockRequest parseFro
}
public static com.github.iotexproject.grpc.api.GetActionsByBlockRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsByBlockRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActionsByBlockRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActionsByBlockRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActionsByBlockRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsByBlockRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -280,7 +331,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -288,7 +339,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActionsByBlockRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActionsByBlockRequest)
com.github.iotexproject.grpc.api.GetActionsByBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -297,7 +348,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -306,21 +357,28 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActionsByBlockRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
blkHash_ = "";
+
start_ = 0L;
+
count_ = 0L;
+
return this;
}
@@ -347,24 +405,45 @@ public com.github.iotexproject.grpc.api.GetActionsByBlockRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActionsByBlockRequest buildPartial() {
com.github.iotexproject.grpc.api.GetActionsByBlockRequest result = new com.github.iotexproject.grpc.api.GetActionsByBlockRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.blkHash_ = blkHash_;
+ result.start_ = start_;
+ result.count_ = count_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActionsByBlockRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.blkHash_ = blkHash_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.start_ = start_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.count_ = count_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActionsByBlockRequest) {
@@ -379,7 +458,6 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsByBlockReque
if (other == com.github.iotexproject.grpc.api.GetActionsByBlockRequest.getDefaultInstance()) return this;
if (!other.getBlkHash().isEmpty()) {
blkHash_ = other.blkHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.getStart() != 0L) {
@@ -388,7 +466,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsByBlockReque
if (other.getCount() != 0L) {
setCount(other.getCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -403,48 +481,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActionsByBlockRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- blkHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16: {
- start_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24: {
- count_ = input.readUInt64();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActionsByBlockRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object blkHash_ = "";
/**
@@ -487,9 +536,11 @@ public java.lang.String getBlkHash() {
*/
public Builder setBlkHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
blkHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -498,8 +549,8 @@ public Builder setBlkHash(
* @return This builder for chaining.
*/
public Builder clearBlkHash() {
+
blkHash_ = getDefaultInstance().getBlkHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -510,10 +561,12 @@ public Builder clearBlkHash() {
*/
public Builder setBlkHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
blkHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -533,9 +586,8 @@ public long getStart() {
* @return This builder for chaining.
*/
public Builder setStart(long value) {
-
+
start_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -544,7 +596,7 @@ public Builder setStart(long value) {
* @return This builder for chaining.
*/
public Builder clearStart() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
start_ = 0L;
onChanged();
return this;
@@ -565,9 +617,8 @@ public long getCount() {
* @return This builder for chaining.
*/
public Builder setCount(long value) {
-
+
count_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -576,11 +627,23 @@ public Builder setCount(long value) {
* @return This builder for chaining.
*/
public Builder clearCount() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
count_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActionsByBlockRequest)
}
@@ -602,18 +665,7 @@ public GetActionsByBlockRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActionsByBlockRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequestOrBuilder.java
index 598abc6..108c298 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByBlockRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequest.java
index f52cc24..3be6275 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,83 @@
* Protobuf type {@code iotexapi.GetActionsByIndexRequest}
*/
public final class GetActionsByIndexRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActionsByIndexRequest)
GetActionsByIndexRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActionsByIndexRequest.class.getName());
- }
// Use GetActionsByIndexRequest.newBuilder() to construct.
- private GetActionsByIndexRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActionsByIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActionsByIndexRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActionsByIndexRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActionsByIndexRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ start_ = input.readUInt64();
+ break;
+ }
+ case 16: {
+
+ count_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByIndexRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +91,7 @@ private GetActionsByIndexRequest() {
}
public static final int START_FIELD_NUMBER = 1;
- private long start_ = 0L;
+ private long start_;
/**
* uint64 start = 1;
* @return The start.
@@ -54,7 +102,7 @@ public long getStart() {
}
public static final int COUNT_FIELD_NUMBER = 2;
- private long count_ = 0L;
+ private long count_;
/**
* uint64 count = 2;
* @return The count.
@@ -84,7 +132,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (count_ != 0L) {
output.writeUInt64(2, count_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -101,7 +149,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, count_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -120,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getStart()) return false;
if (getCount()
!= other.getCount()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -137,7 +185,7 @@ public int hashCode() {
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -176,41 +224,39 @@ public static com.github.iotexproject.grpc.api.GetActionsByIndexRequest parseFro
}
public static com.github.iotexproject.grpc.api.GetActionsByIndexRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsByIndexRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActionsByIndexRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActionsByIndexRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActionsByIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsByIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -230,7 +276,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -238,7 +284,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActionsByIndexRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActionsByIndexRequest)
com.github.iotexproject.grpc.api.GetActionsByIndexRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -247,7 +293,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsByIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -256,20 +302,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActionsByIndexRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
start_ = 0L;
+
count_ = 0L;
+
return this;
}
@@ -296,21 +348,44 @@ public com.github.iotexproject.grpc.api.GetActionsByIndexRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActionsByIndexRequest buildPartial() {
com.github.iotexproject.grpc.api.GetActionsByIndexRequest result = new com.github.iotexproject.grpc.api.GetActionsByIndexRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.start_ = start_;
+ result.count_ = count_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActionsByIndexRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.start_ = start_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.count_ = count_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActionsByIndexRequest) {
@@ -329,7 +404,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsByIndexReque
if (other.getCount() != 0L) {
setCount(other.getCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -344,43 +419,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActionsByIndexRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- start_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- count_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActionsByIndexRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long start_ ;
/**
@@ -397,9 +448,8 @@ public long getStart() {
* @return This builder for chaining.
*/
public Builder setStart(long value) {
-
+
start_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -408,7 +458,7 @@ public Builder setStart(long value) {
* @return This builder for chaining.
*/
public Builder clearStart() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
start_ = 0L;
onChanged();
return this;
@@ -429,9 +479,8 @@ public long getCount() {
* @return This builder for chaining.
*/
public Builder setCount(long value) {
-
+
count_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -440,11 +489,23 @@ public Builder setCount(long value) {
* @return This builder for chaining.
*/
public Builder clearCount() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
count_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActionsByIndexRequest)
}
@@ -466,18 +527,7 @@ public GetActionsByIndexRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActionsByIndexRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequestOrBuilder.java
index d4aae5a..746ede9 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsByIndexRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequest.java
index 8f25e01..217d31c 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,143 @@
* Protobuf type {@code iotexapi.GetActionsRequest}
*/
public final class GetActionsRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActionsRequest)
GetActionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActionsRequest.class.getName());
- }
// Use GetActionsRequest.newBuilder() to construct.
- private GetActionsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActionsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActionsRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActionsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActionsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.GetActionsByIndexRequest.Builder subBuilder = null;
+ if (lookupCase_ == 1) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetActionsByIndexRequest) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetActionsByIndexRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetActionsByIndexRequest) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 1;
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.api.GetActionByHashRequest.Builder subBuilder = null;
+ if (lookupCase_ == 2) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetActionByHashRequest) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetActionByHashRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetActionByHashRequest) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 2;
+ break;
+ }
+ case 26: {
+ com.github.iotexproject.grpc.api.GetActionsByAddressRequest.Builder subBuilder = null;
+ if (lookupCase_ == 3) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetActionsByAddressRequest) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetActionsByAddressRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetActionsByAddressRequest) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 3;
+ break;
+ }
+ case 34: {
+ com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.Builder subBuilder = null;
+ if (lookupCase_ == 4) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 4;
+ break;
+ }
+ case 42: {
+ com.github.iotexproject.grpc.api.GetActionsByBlockRequest.Builder subBuilder = null;
+ if (lookupCase_ == 5) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetActionsByBlockRequest) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetActionsByBlockRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetActionsByBlockRequest) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 5;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +151,6 @@ private GetActionsRequest() {
}
private int lookupCase_ = 0;
- @SuppressWarnings("serial")
private java.lang.Object lookup_;
public enum LookupCase
implements com.google.protobuf.Internal.EnumLite,
@@ -274,7 +381,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (lookupCase_ == 5) {
output.writeMessage(5, (com.github.iotexproject.grpc.api.GetActionsByBlockRequest) lookup_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -303,7 +410,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.github.iotexproject.grpc.api.GetActionsByBlockRequest) lookup_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -343,7 +450,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -378,7 +485,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -417,41 +524,39 @@ public static com.github.iotexproject.grpc.api.GetActionsRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetActionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActionsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -471,7 +576,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -479,7 +584,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActionsRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActionsRequest)
com.github.iotexproject.grpc.api.GetActionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -488,7 +593,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -497,33 +602,22 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActionsRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- if (byIndexBuilder_ != null) {
- byIndexBuilder_.clear();
- }
- if (byHashBuilder_ != null) {
- byHashBuilder_.clear();
- }
- if (byAddrBuilder_ != null) {
- byAddrBuilder_.clear();
- }
- if (unconfirmedByAddrBuilder_ != null) {
- unconfirmedByAddrBuilder_.clear();
- }
- if (byBlkBuilder_ != null) {
- byBlkBuilder_.clear();
- }
lookupCase_ = 0;
lookup_ = null;
return this;
@@ -552,41 +646,78 @@ public com.github.iotexproject.grpc.api.GetActionsRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActionsRequest buildPartial() {
com.github.iotexproject.grpc.api.GetActionsRequest result = new com.github.iotexproject.grpc.api.GetActionsRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActionsRequest result) {
- int from_bitField0_ = bitField0_;
- }
-
- private void buildPartialOneofs(com.github.iotexproject.grpc.api.GetActionsRequest result) {
- result.lookupCase_ = lookupCase_;
- result.lookup_ = this.lookup_;
- if (lookupCase_ == 1 &&
- byIndexBuilder_ != null) {
- result.lookup_ = byIndexBuilder_.build();
+ if (lookupCase_ == 1) {
+ if (byIndexBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byIndexBuilder_.build();
+ }
}
- if (lookupCase_ == 2 &&
- byHashBuilder_ != null) {
- result.lookup_ = byHashBuilder_.build();
+ if (lookupCase_ == 2) {
+ if (byHashBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byHashBuilder_.build();
+ }
}
- if (lookupCase_ == 3 &&
- byAddrBuilder_ != null) {
- result.lookup_ = byAddrBuilder_.build();
+ if (lookupCase_ == 3) {
+ if (byAddrBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byAddrBuilder_.build();
+ }
}
- if (lookupCase_ == 4 &&
- unconfirmedByAddrBuilder_ != null) {
- result.lookup_ = unconfirmedByAddrBuilder_.build();
+ if (lookupCase_ == 4) {
+ if (unconfirmedByAddrBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = unconfirmedByAddrBuilder_.build();
+ }
}
- if (lookupCase_ == 5 &&
- byBlkBuilder_ != null) {
- result.lookup_ = byBlkBuilder_.build();
+ if (lookupCase_ == 5) {
+ if (byBlkBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byBlkBuilder_.build();
+ }
}
+ result.lookupCase_ = lookupCase_;
+ onBuilt();
+ return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActionsRequest) {
@@ -624,7 +755,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsRequest othe
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -639,65 +770,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActionsRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getByIndexFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 1;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getByHashFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 2;
- break;
- } // case 18
- case 26: {
- input.readMessage(
- getByAddrFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 3;
- break;
- } // case 26
- case 34: {
- input.readMessage(
- getUnconfirmedByAddrFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 4;
- break;
- } // case 34
- case 42: {
- input.readMessage(
- getByBlkFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 5;
- break;
- } // case 42
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActionsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int lookupCase_ = 0;
@@ -715,9 +798,8 @@ public Builder clearLookup() {
return this;
}
- private int bitField0_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByIndexRequest, com.github.iotexproject.grpc.api.GetActionsByIndexRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByIndexRequestOrBuilder> byIndexBuilder_;
/**
* .iotexapi.GetActionsByIndexRequest byIndex = 1;
@@ -791,9 +873,8 @@ public Builder mergeByIndex(com.github.iotexproject.grpc.api.GetActionsByIndexRe
} else {
if (lookupCase_ == 1) {
byIndexBuilder_.mergeFrom(value);
- } else {
- byIndexBuilder_.setMessage(value);
}
+ byIndexBuilder_.setMessage(value);
}
lookupCase_ = 1;
return this;
@@ -840,14 +921,14 @@ public com.github.iotexproject.grpc.api.GetActionsByIndexRequestOrBuilder getByI
/**
* .iotexapi.GetActionsByIndexRequest byIndex = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByIndexRequest, com.github.iotexproject.grpc.api.GetActionsByIndexRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByIndexRequestOrBuilder>
getByIndexFieldBuilder() {
if (byIndexBuilder_ == null) {
if (!(lookupCase_ == 1)) {
lookup_ = com.github.iotexproject.grpc.api.GetActionsByIndexRequest.getDefaultInstance();
}
- byIndexBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByIndexRequest, com.github.iotexproject.grpc.api.GetActionsByIndexRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByIndexRequestOrBuilder>(
(com.github.iotexproject.grpc.api.GetActionsByIndexRequest) lookup_,
getParentForChildren(),
@@ -855,11 +936,11 @@ public com.github.iotexproject.grpc.api.GetActionsByIndexRequestOrBuilder getByI
lookup_ = null;
}
lookupCase_ = 1;
- onChanged();
+ onChanged();;
return byIndexBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionByHashRequest, com.github.iotexproject.grpc.api.GetActionByHashRequest.Builder, com.github.iotexproject.grpc.api.GetActionByHashRequestOrBuilder> byHashBuilder_;
/**
* .iotexapi.GetActionByHashRequest byHash = 2;
@@ -933,9 +1014,8 @@ public Builder mergeByHash(com.github.iotexproject.grpc.api.GetActionByHashReque
} else {
if (lookupCase_ == 2) {
byHashBuilder_.mergeFrom(value);
- } else {
- byHashBuilder_.setMessage(value);
}
+ byHashBuilder_.setMessage(value);
}
lookupCase_ = 2;
return this;
@@ -982,14 +1062,14 @@ public com.github.iotexproject.grpc.api.GetActionByHashRequestOrBuilder getByHas
/**
* .iotexapi.GetActionByHashRequest byHash = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionByHashRequest, com.github.iotexproject.grpc.api.GetActionByHashRequest.Builder, com.github.iotexproject.grpc.api.GetActionByHashRequestOrBuilder>
getByHashFieldBuilder() {
if (byHashBuilder_ == null) {
if (!(lookupCase_ == 2)) {
lookup_ = com.github.iotexproject.grpc.api.GetActionByHashRequest.getDefaultInstance();
}
- byHashBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionByHashRequest, com.github.iotexproject.grpc.api.GetActionByHashRequest.Builder, com.github.iotexproject.grpc.api.GetActionByHashRequestOrBuilder>(
(com.github.iotexproject.grpc.api.GetActionByHashRequest) lookup_,
getParentForChildren(),
@@ -997,11 +1077,11 @@ public com.github.iotexproject.grpc.api.GetActionByHashRequestOrBuilder getByHas
lookup_ = null;
}
lookupCase_ = 2;
- onChanged();
+ onChanged();;
return byHashBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByAddressRequest, com.github.iotexproject.grpc.api.GetActionsByAddressRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByAddressRequestOrBuilder> byAddrBuilder_;
/**
* .iotexapi.GetActionsByAddressRequest byAddr = 3;
@@ -1075,9 +1155,8 @@ public Builder mergeByAddr(com.github.iotexproject.grpc.api.GetActionsByAddressR
} else {
if (lookupCase_ == 3) {
byAddrBuilder_.mergeFrom(value);
- } else {
- byAddrBuilder_.setMessage(value);
}
+ byAddrBuilder_.setMessage(value);
}
lookupCase_ = 3;
return this;
@@ -1124,14 +1203,14 @@ public com.github.iotexproject.grpc.api.GetActionsByAddressRequestOrBuilder getB
/**
* .iotexapi.GetActionsByAddressRequest byAddr = 3;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByAddressRequest, com.github.iotexproject.grpc.api.GetActionsByAddressRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByAddressRequestOrBuilder>
getByAddrFieldBuilder() {
if (byAddrBuilder_ == null) {
if (!(lookupCase_ == 3)) {
lookup_ = com.github.iotexproject.grpc.api.GetActionsByAddressRequest.getDefaultInstance();
}
- byAddrBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byAddrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByAddressRequest, com.github.iotexproject.grpc.api.GetActionsByAddressRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByAddressRequestOrBuilder>(
(com.github.iotexproject.grpc.api.GetActionsByAddressRequest) lookup_,
getParentForChildren(),
@@ -1139,11 +1218,11 @@ public com.github.iotexproject.grpc.api.GetActionsByAddressRequestOrBuilder getB
lookup_ = null;
}
lookupCase_ = 3;
- onChanged();
+ onChanged();;
return byAddrBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest, com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.Builder, com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequestOrBuilder> unconfirmedByAddrBuilder_;
/**
* .iotexapi.GetUnconfirmedActionsByAddressRequest unconfirmedByAddr = 4;
@@ -1217,9 +1296,8 @@ public Builder mergeUnconfirmedByAddr(com.github.iotexproject.grpc.api.GetUnconf
} else {
if (lookupCase_ == 4) {
unconfirmedByAddrBuilder_.mergeFrom(value);
- } else {
- unconfirmedByAddrBuilder_.setMessage(value);
}
+ unconfirmedByAddrBuilder_.setMessage(value);
}
lookupCase_ = 4;
return this;
@@ -1266,14 +1344,14 @@ public com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequestOrB
/**
* .iotexapi.GetUnconfirmedActionsByAddressRequest unconfirmedByAddr = 4;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest, com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.Builder, com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequestOrBuilder>
getUnconfirmedByAddrFieldBuilder() {
if (unconfirmedByAddrBuilder_ == null) {
if (!(lookupCase_ == 4)) {
lookup_ = com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.getDefaultInstance();
}
- unconfirmedByAddrBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ unconfirmedByAddrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest, com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.Builder, com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequestOrBuilder>(
(com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest) lookup_,
getParentForChildren(),
@@ -1281,11 +1359,11 @@ public com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequestOrB
lookup_ = null;
}
lookupCase_ = 4;
- onChanged();
+ onChanged();;
return unconfirmedByAddrBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByBlockRequest, com.github.iotexproject.grpc.api.GetActionsByBlockRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByBlockRequestOrBuilder> byBlkBuilder_;
/**
* .iotexapi.GetActionsByBlockRequest byBlk = 5;
@@ -1359,9 +1437,8 @@ public Builder mergeByBlk(com.github.iotexproject.grpc.api.GetActionsByBlockRequ
} else {
if (lookupCase_ == 5) {
byBlkBuilder_.mergeFrom(value);
- } else {
- byBlkBuilder_.setMessage(value);
}
+ byBlkBuilder_.setMessage(value);
}
lookupCase_ = 5;
return this;
@@ -1408,14 +1485,14 @@ public com.github.iotexproject.grpc.api.GetActionsByBlockRequestOrBuilder getByB
/**
* .iotexapi.GetActionsByBlockRequest byBlk = 5;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByBlockRequest, com.github.iotexproject.grpc.api.GetActionsByBlockRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByBlockRequestOrBuilder>
getByBlkFieldBuilder() {
if (byBlkBuilder_ == null) {
if (!(lookupCase_ == 5)) {
lookup_ = com.github.iotexproject.grpc.api.GetActionsByBlockRequest.getDefaultInstance();
}
- byBlkBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byBlkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetActionsByBlockRequest, com.github.iotexproject.grpc.api.GetActionsByBlockRequest.Builder, com.github.iotexproject.grpc.api.GetActionsByBlockRequestOrBuilder>(
(com.github.iotexproject.grpc.api.GetActionsByBlockRequest) lookup_,
getParentForChildren(),
@@ -1423,9 +1500,21 @@ public com.github.iotexproject.grpc.api.GetActionsByBlockRequestOrBuilder getByB
lookup_ = null;
}
lookupCase_ = 5;
- onChanged();
+ onChanged();;
return byBlkBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActionsRequest)
}
@@ -1447,18 +1536,7 @@ public GetActionsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActionsRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequestOrBuilder.java
index 965752a..e505381 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -84,5 +82,5 @@ public interface GetActionsRequestOrBuilder extends
*/
com.github.iotexproject.grpc.api.GetActionsByBlockRequestOrBuilder getByBlkOrBuilder();
- com.github.iotexproject.grpc.api.GetActionsRequest.LookupCase getLookupCase();
+ public com.github.iotexproject.grpc.api.GetActionsRequest.LookupCase getLookupCase();
}
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponse.java
index 58128c7..caa588d 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,92 @@
* Protobuf type {@code iotexapi.GetActionsResponse}
*/
public final class GetActionsResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetActionsResponse)
GetActionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetActionsResponse.class.getName());
- }
// Use GetActionsResponse.newBuilder() to construct.
- private GetActionsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetActionsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetActionsResponse() {
actionInfo_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetActionsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetActionsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ actionInfo_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ actionInfo_.add(
+ input.readMessage(com.github.iotexproject.grpc.api.ActionInfo.parser(), extensionRegistry));
+ break;
+ }
+ case 16: {
+
+ total_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ actionInfo_ = java.util.Collections.unmodifiableList(actionInfo_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +100,7 @@ private GetActionsResponse() {
}
public static final int TOTAL_FIELD_NUMBER = 2;
- private long total_ = 0L;
+ private long total_;
/**
* uint64 total = 2;
* @return The total.
@@ -55,7 +111,6 @@ public long getTotal() {
}
public static final int ACTIONINFO_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
private java.util.List actionInfo_;
/**
* repeated .iotexapi.ActionInfo actionInfo = 1;
@@ -115,7 +170,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (total_ != 0L) {
output.writeUInt64(2, total_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -132,7 +187,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, total_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -151,7 +206,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getTotal()) return false;
if (!getActionInfoList()
.equals(other.getActionInfoList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -169,7 +224,7 @@ public int hashCode() {
hash = (37 * hash) + ACTIONINFO_FIELD_NUMBER;
hash = (53 * hash) + getActionInfoList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -208,41 +263,39 @@ public static com.github.iotexproject.grpc.api.GetActionsResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetActionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetActionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetActionsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetActionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetActionsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -262,7 +315,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -270,7 +323,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetActionsResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetActionsResponse)
com.github.iotexproject.grpc.api.GetActionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -279,7 +332,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetActionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -288,26 +341,31 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetActionsResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getActionInfoFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
total_ = 0L;
+
if (actionInfoBuilder_ == null) {
actionInfo_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- actionInfo_ = null;
actionInfoBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -334,31 +392,53 @@ public com.github.iotexproject.grpc.api.GetActionsResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetActionsResponse buildPartial() {
com.github.iotexproject.grpc.api.GetActionsResponse result = new com.github.iotexproject.grpc.api.GetActionsResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetActionsResponse result) {
+ int from_bitField0_ = bitField0_;
+ result.total_ = total_;
if (actionInfoBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
actionInfo_ = java.util.Collections.unmodifiableList(actionInfo_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.actionInfo_ = actionInfo_;
} else {
result.actionInfo_ = actionInfoBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetActionsResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.total_ = total_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetActionsResponse) {
@@ -378,7 +458,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsResponse oth
if (!other.actionInfo_.isEmpty()) {
if (actionInfo_.isEmpty()) {
actionInfo_ = other.actionInfo_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActionInfoIsMutable();
actionInfo_.addAll(other.actionInfo_);
@@ -391,16 +471,16 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetActionsResponse oth
actionInfoBuilder_.dispose();
actionInfoBuilder_ = null;
actionInfo_ = other.actionInfo_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
actionInfoBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getActionInfoFieldBuilder() : null;
} else {
actionInfoBuilder_.addAllMessages(other.actionInfo_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -415,48 +495,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetActionsResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.github.iotexproject.grpc.api.ActionInfo m =
- input.readMessage(
- com.github.iotexproject.grpc.api.ActionInfo.parser(),
- extensionRegistry);
- if (actionInfoBuilder_ == null) {
- ensureActionInfoIsMutable();
- actionInfo_.add(m);
- } else {
- actionInfoBuilder_.addMessage(m);
- }
- break;
- } // case 10
- case 16: {
- total_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 16
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetActionsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -476,9 +525,8 @@ public long getTotal() {
* @return This builder for chaining.
*/
public Builder setTotal(long value) {
-
+
total_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -487,7 +535,7 @@ public Builder setTotal(long value) {
* @return This builder for chaining.
*/
public Builder clearTotal() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
total_ = 0L;
onChanged();
return this;
@@ -496,13 +544,13 @@ public Builder clearTotal() {
private java.util.List actionInfo_ =
java.util.Collections.emptyList();
private void ensureActionInfoIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
actionInfo_ = new java.util.ArrayList(actionInfo_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.ActionInfo, com.github.iotexproject.grpc.api.ActionInfo.Builder, com.github.iotexproject.grpc.api.ActionInfoOrBuilder> actionInfoBuilder_;
/**
@@ -648,7 +696,7 @@ public Builder addAllActionInfo(
public Builder clearActionInfo() {
if (actionInfoBuilder_ == null) {
actionInfo_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
actionInfoBuilder_.clear();
@@ -718,20 +766,32 @@ public com.github.iotexproject.grpc.api.ActionInfo.Builder addActionInfoBuilder(
getActionInfoBuilderList() {
return getActionInfoFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.ActionInfo, com.github.iotexproject.grpc.api.ActionInfo.Builder, com.github.iotexproject.grpc.api.ActionInfoOrBuilder>
getActionInfoFieldBuilder() {
if (actionInfoBuilder_ == null) {
- actionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ actionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.ActionInfo, com.github.iotexproject.grpc.api.ActionInfo.Builder, com.github.iotexproject.grpc.api.ActionInfoOrBuilder>(
actionInfo_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
actionInfo_ = null;
}
return actionInfoBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetActionsResponse)
}
@@ -753,18 +813,7 @@ public GetActionsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetActionsResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponseOrBuilder.java
index b8ccd6a..0dfb25a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetActionsResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequest.java
index fc91ca9..73cfac4 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.GetBlockMetaByHashRequest}
*/
public final class GetBlockMetaByHashRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetBlockMetaByHashRequest)
GetBlockMetaByHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetBlockMetaByHashRequest.class.getName());
- }
// Use GetBlockMetaByHashRequest.newBuilder() to construct.
- private GetBlockMetaByHashRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetBlockMetaByHashRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockMetaByHashRequest() {
blkHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetBlockMetaByHashRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetBlockMetaByHashRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ blkHash_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetaByHashRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetaByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +88,7 @@ private GetBlockMetaByHashRequest() {
}
public static final int BLKHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object blkHash_ = "";
+ private volatile java.lang.Object blkHash_;
/**
* string blkHash = 1;
* @return The blkHash.
@@ -96,10 +139,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(blkHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, blkHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blkHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, blkHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -108,10 +151,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(blkHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, blkHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blkHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, blkHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -128,7 +171,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlkHash()
.equals(other.getBlkHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -141,7 +184,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BLKHASH_FIELD_NUMBER;
hash = (53 * hash) + getBlkHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -180,41 +223,39 @@ public static com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parseFr
}
public static com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -234,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -242,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetBlockMetaByHashRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetBlockMetaByHashRequest)
com.github.iotexproject.grpc.api.GetBlockMetaByHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -251,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetaByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -260,19 +301,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
blkHash_ = "";
+
return this;
}
@@ -299,18 +345,43 @@ public com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest buildPartial() {
com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest result = new com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.blkHash_ = blkHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.blkHash_ = blkHash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest) {
@@ -325,10 +396,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetBlockMetaByHashRequ
if (other == com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.getDefaultInstance()) return this;
if (!other.getBlkHash().isEmpty()) {
blkHash_ = other.blkHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -343,38 +413,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- blkHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object blkHash_ = "";
/**
@@ -417,9 +468,11 @@ public java.lang.String getBlkHash() {
*/
public Builder setBlkHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
blkHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -428,8 +481,8 @@ public Builder setBlkHash(
* @return This builder for chaining.
*/
public Builder clearBlkHash() {
+
blkHash_ = getDefaultInstance().getBlkHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -440,13 +493,27 @@ public Builder clearBlkHash() {
*/
public Builder setBlkHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
blkHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetBlockMetaByHashRequest)
}
@@ -468,18 +535,7 @@ public GetBlockMetaByHashRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetBlockMetaByHashRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequestOrBuilder.java
index eda7246..36c1667 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetaByHashRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequest.java
index 80ae1c8..d9d3bfb 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,83 @@
* Protobuf type {@code iotexapi.GetBlockMetasByIndexRequest}
*/
public final class GetBlockMetasByIndexRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetBlockMetasByIndexRequest)
GetBlockMetasByIndexRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetBlockMetasByIndexRequest.class.getName());
- }
// Use GetBlockMetasByIndexRequest.newBuilder() to construct.
- private GetBlockMetasByIndexRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetBlockMetasByIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockMetasByIndexRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetBlockMetasByIndexRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetBlockMetasByIndexRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ start_ = input.readUInt64();
+ break;
+ }
+ case 16: {
+
+ count_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasByIndexRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasByIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +91,7 @@ private GetBlockMetasByIndexRequest() {
}
public static final int START_FIELD_NUMBER = 1;
- private long start_ = 0L;
+ private long start_;
/**
* uint64 start = 1;
* @return The start.
@@ -54,7 +102,7 @@ public long getStart() {
}
public static final int COUNT_FIELD_NUMBER = 2;
- private long count_ = 0L;
+ private long count_;
/**
* uint64 count = 2;
* @return The count.
@@ -84,7 +132,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (count_ != 0L) {
output.writeUInt64(2, count_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -101,7 +149,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, count_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -120,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getStart()) return false;
if (getCount()
!= other.getCount()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -137,7 +185,7 @@ public int hashCode() {
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -176,41 +224,39 @@ public static com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parse
}
public static com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -230,7 +276,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -238,7 +284,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetBlockMetasByIndexRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetBlockMetasByIndexRequest)
com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -247,7 +293,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasByIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -256,20 +302,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
start_ = 0L;
+
count_ = 0L;
+
return this;
}
@@ -296,21 +348,44 @@ public com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest buildPartial() {
com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest result = new com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.start_ = start_;
+ result.count_ = count_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.start_ = start_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.count_ = count_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest) {
@@ -329,7 +404,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetBlockMetasByIndexRe
if (other.getCount() != 0L) {
setCount(other.getCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -344,43 +419,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- start_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- count_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long start_ ;
/**
@@ -397,9 +448,8 @@ public long getStart() {
* @return This builder for chaining.
*/
public Builder setStart(long value) {
-
+
start_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -408,7 +458,7 @@ public Builder setStart(long value) {
* @return This builder for chaining.
*/
public Builder clearStart() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
start_ = 0L;
onChanged();
return this;
@@ -429,9 +479,8 @@ public long getCount() {
* @return This builder for chaining.
*/
public Builder setCount(long value) {
-
+
count_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -440,11 +489,23 @@ public Builder setCount(long value) {
* @return This builder for chaining.
*/
public Builder clearCount() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
count_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetBlockMetasByIndexRequest)
}
@@ -466,18 +527,7 @@ public GetBlockMetasByIndexRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetBlockMetasByIndexRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequestOrBuilder.java
index 0b5fe2e..19aea63 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasByIndexRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequest.java
index 93083f0..980f842 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,101 @@
* Protobuf type {@code iotexapi.GetBlockMetasRequest}
*/
public final class GetBlockMetasRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetBlockMetasRequest)
GetBlockMetasRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetBlockMetasRequest.class.getName());
- }
// Use GetBlockMetasRequest.newBuilder() to construct.
- private GetBlockMetasRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetBlockMetasRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockMetasRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetBlockMetasRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetBlockMetasRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest.Builder subBuilder = null;
+ if (lookupCase_ == 1) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 1;
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.Builder subBuilder = null;
+ if (lookupCase_ == 2) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 2;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +109,6 @@ private GetBlockMetasRequest() {
}
private int lookupCase_ = 0;
- @SuppressWarnings("serial")
private java.lang.Object lookup_;
public enum LookupCase
implements com.google.protobuf.Internal.EnumLite,
@@ -166,7 +231,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (lookupCase_ == 2) {
output.writeMessage(2, (com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest) lookup_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -183,7 +248,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest) lookup_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -211,7 +276,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -234,7 +299,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -273,41 +338,39 @@ public static com.github.iotexproject.grpc.api.GetBlockMetasRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetBlockMetasRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetasRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetasRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -327,7 +390,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -335,7 +398,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetBlockMetasRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetBlockMetasRequest)
com.github.iotexproject.grpc.api.GetBlockMetasRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -344,7 +407,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -353,24 +416,22 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetBlockMetasRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- if (byIndexBuilder_ != null) {
- byIndexBuilder_.clear();
- }
- if (byHashBuilder_ != null) {
- byHashBuilder_.clear();
- }
lookupCase_ = 0;
lookup_ = null;
return this;
@@ -399,29 +460,57 @@ public com.github.iotexproject.grpc.api.GetBlockMetasRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetBlockMetasRequest buildPartial() {
com.github.iotexproject.grpc.api.GetBlockMetasRequest result = new com.github.iotexproject.grpc.api.GetBlockMetasRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- buildPartialOneofs(result);
+ if (lookupCase_ == 1) {
+ if (byIndexBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byIndexBuilder_.build();
+ }
+ }
+ if (lookupCase_ == 2) {
+ if (byHashBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byHashBuilder_.build();
+ }
+ }
+ result.lookupCase_ = lookupCase_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetBlockMetasRequest result) {
- int from_bitField0_ = bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
}
-
- private void buildPartialOneofs(com.github.iotexproject.grpc.api.GetBlockMetasRequest result) {
- result.lookupCase_ = lookupCase_;
- result.lookup_ = this.lookup_;
- if (lookupCase_ == 1 &&
- byIndexBuilder_ != null) {
- result.lookup_ = byIndexBuilder_.build();
- }
- if (lookupCase_ == 2 &&
- byHashBuilder_ != null) {
- result.lookup_ = byHashBuilder_.build();
- }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetBlockMetasRequest) {
@@ -447,7 +536,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetBlockMetasRequest o
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -462,44 +551,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetBlockMetasRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getByIndexFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 1;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getByHashFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 2;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetBlockMetasRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int lookupCase_ = 0;
@@ -517,9 +579,8 @@ public Builder clearLookup() {
return this;
}
- private int bitField0_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest, com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest.Builder, com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequestOrBuilder> byIndexBuilder_;
/**
* .iotexapi.GetBlockMetasByIndexRequest byIndex = 1;
@@ -593,9 +654,8 @@ public Builder mergeByIndex(com.github.iotexproject.grpc.api.GetBlockMetasByInde
} else {
if (lookupCase_ == 1) {
byIndexBuilder_.mergeFrom(value);
- } else {
- byIndexBuilder_.setMessage(value);
}
+ byIndexBuilder_.setMessage(value);
}
lookupCase_ = 1;
return this;
@@ -642,14 +702,14 @@ public com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequestOrBuilder get
/**
* .iotexapi.GetBlockMetasByIndexRequest byIndex = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest, com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest.Builder, com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequestOrBuilder>
getByIndexFieldBuilder() {
if (byIndexBuilder_ == null) {
if (!(lookupCase_ == 1)) {
lookup_ = com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest.getDefaultInstance();
}
- byIndexBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest, com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest.Builder, com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequestOrBuilder>(
(com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequest) lookup_,
getParentForChildren(),
@@ -657,11 +717,11 @@ public com.github.iotexproject.grpc.api.GetBlockMetasByIndexRequestOrBuilder get
lookup_ = null;
}
lookupCase_ = 1;
- onChanged();
+ onChanged();;
return byIndexBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest, com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.Builder, com.github.iotexproject.grpc.api.GetBlockMetaByHashRequestOrBuilder> byHashBuilder_;
/**
* .iotexapi.GetBlockMetaByHashRequest byHash = 2;
@@ -735,9 +795,8 @@ public Builder mergeByHash(com.github.iotexproject.grpc.api.GetBlockMetaByHashRe
} else {
if (lookupCase_ == 2) {
byHashBuilder_.mergeFrom(value);
- } else {
- byHashBuilder_.setMessage(value);
}
+ byHashBuilder_.setMessage(value);
}
lookupCase_ = 2;
return this;
@@ -784,14 +843,14 @@ public com.github.iotexproject.grpc.api.GetBlockMetaByHashRequestOrBuilder getBy
/**
* .iotexapi.GetBlockMetaByHashRequest byHash = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest, com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.Builder, com.github.iotexproject.grpc.api.GetBlockMetaByHashRequestOrBuilder>
getByHashFieldBuilder() {
if (byHashBuilder_ == null) {
if (!(lookupCase_ == 2)) {
lookup_ = com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.getDefaultInstance();
}
- byHashBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest, com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest.Builder, com.github.iotexproject.grpc.api.GetBlockMetaByHashRequestOrBuilder>(
(com.github.iotexproject.grpc.api.GetBlockMetaByHashRequest) lookup_,
getParentForChildren(),
@@ -799,9 +858,21 @@ public com.github.iotexproject.grpc.api.GetBlockMetaByHashRequestOrBuilder getBy
lookup_ = null;
}
lookupCase_ = 2;
- onChanged();
+ onChanged();;
return byHashBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetBlockMetasRequest)
}
@@ -823,18 +894,7 @@ public GetBlockMetasRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetBlockMetasRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequestOrBuilder.java
index fd72988..0ddcc46 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -39,5 +37,5 @@ public interface GetBlockMetasRequestOrBuilder extends
*/
com.github.iotexproject.grpc.api.GetBlockMetaByHashRequestOrBuilder getByHashOrBuilder();
- com.github.iotexproject.grpc.api.GetBlockMetasRequest.LookupCase getLookupCase();
+ public com.github.iotexproject.grpc.api.GetBlockMetasRequest.LookupCase getLookupCase();
}
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponse.java
index 164a48f..0b6f77f 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,92 @@
* Protobuf type {@code iotexapi.GetBlockMetasResponse}
*/
public final class GetBlockMetasResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetBlockMetasResponse)
GetBlockMetasResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetBlockMetasResponse.class.getName());
- }
// Use GetBlockMetasResponse.newBuilder() to construct.
- private GetBlockMetasResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetBlockMetasResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockMetasResponse() {
blkMetas_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetBlockMetasResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetBlockMetasResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ blkMetas_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ blkMetas_.add(
+ input.readMessage(com.github.iotexproject.grpc.types.BlockMeta.parser(), extensionRegistry));
+ break;
+ }
+ case 16: {
+
+ total_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ blkMetas_ = java.util.Collections.unmodifiableList(blkMetas_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +100,7 @@ private GetBlockMetasResponse() {
}
public static final int TOTAL_FIELD_NUMBER = 2;
- private long total_ = 0L;
+ private long total_;
/**
* uint64 total = 2;
* @return The total.
@@ -55,7 +111,6 @@ public long getTotal() {
}
public static final int BLKMETAS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
private java.util.List blkMetas_;
/**
* repeated .iotextypes.BlockMeta blkMetas = 1;
@@ -115,7 +170,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (total_ != 0L) {
output.writeUInt64(2, total_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -132,7 +187,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, total_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -151,7 +206,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getTotal()) return false;
if (!getBlkMetasList()
.equals(other.getBlkMetasList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -169,7 +224,7 @@ public int hashCode() {
hash = (37 * hash) + BLKMETAS_FIELD_NUMBER;
hash = (53 * hash) + getBlkMetasList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -208,41 +263,39 @@ public static com.github.iotexproject.grpc.api.GetBlockMetasResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetBlockMetasResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetasResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetBlockMetasResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetBlockMetasResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -262,7 +315,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -270,7 +323,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetBlockMetasResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetBlockMetasResponse)
com.github.iotexproject.grpc.api.GetBlockMetasResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -279,7 +332,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetBlockMetasResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -288,26 +341,31 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetBlockMetasResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getBlkMetasFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
total_ = 0L;
+
if (blkMetasBuilder_ == null) {
blkMetas_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- blkMetas_ = null;
blkMetasBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -334,31 +392,53 @@ public com.github.iotexproject.grpc.api.GetBlockMetasResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetBlockMetasResponse buildPartial() {
com.github.iotexproject.grpc.api.GetBlockMetasResponse result = new com.github.iotexproject.grpc.api.GetBlockMetasResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetBlockMetasResponse result) {
+ int from_bitField0_ = bitField0_;
+ result.total_ = total_;
if (blkMetasBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
blkMetas_ = java.util.Collections.unmodifiableList(blkMetas_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.blkMetas_ = blkMetas_;
} else {
result.blkMetas_ = blkMetasBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetBlockMetasResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.total_ = total_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetBlockMetasResponse) {
@@ -378,7 +458,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetBlockMetasResponse
if (!other.blkMetas_.isEmpty()) {
if (blkMetas_.isEmpty()) {
blkMetas_ = other.blkMetas_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlkMetasIsMutable();
blkMetas_.addAll(other.blkMetas_);
@@ -391,16 +471,16 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetBlockMetasResponse
blkMetasBuilder_.dispose();
blkMetasBuilder_ = null;
blkMetas_ = other.blkMetas_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
blkMetasBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlkMetasFieldBuilder() : null;
} else {
blkMetasBuilder_.addAllMessages(other.blkMetas_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -415,48 +495,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetBlockMetasResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.github.iotexproject.grpc.types.BlockMeta m =
- input.readMessage(
- com.github.iotexproject.grpc.types.BlockMeta.parser(),
- extensionRegistry);
- if (blkMetasBuilder_ == null) {
- ensureBlkMetasIsMutable();
- blkMetas_.add(m);
- } else {
- blkMetasBuilder_.addMessage(m);
- }
- break;
- } // case 10
- case 16: {
- total_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 16
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetBlockMetasResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -476,9 +525,8 @@ public long getTotal() {
* @return This builder for chaining.
*/
public Builder setTotal(long value) {
-
+
total_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -487,7 +535,7 @@ public Builder setTotal(long value) {
* @return This builder for chaining.
*/
public Builder clearTotal() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
total_ = 0L;
onChanged();
return this;
@@ -496,13 +544,13 @@ public Builder clearTotal() {
private java.util.List blkMetas_ =
java.util.Collections.emptyList();
private void ensureBlkMetasIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
blkMetas_ = new java.util.ArrayList(blkMetas_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockMeta, com.github.iotexproject.grpc.types.BlockMeta.Builder, com.github.iotexproject.grpc.types.BlockMetaOrBuilder> blkMetasBuilder_;
/**
@@ -648,7 +696,7 @@ public Builder addAllBlkMetas(
public Builder clearBlkMetas() {
if (blkMetasBuilder_ == null) {
blkMetas_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blkMetasBuilder_.clear();
@@ -718,20 +766,32 @@ public com.github.iotexproject.grpc.types.BlockMeta.Builder addBlkMetasBuilder(
getBlkMetasBuilderList() {
return getBlkMetasFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockMeta, com.github.iotexproject.grpc.types.BlockMeta.Builder, com.github.iotexproject.grpc.types.BlockMetaOrBuilder>
getBlkMetasFieldBuilder() {
if (blkMetasBuilder_ == null) {
- blkMetasBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ blkMetasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockMeta, com.github.iotexproject.grpc.types.BlockMeta.Builder, com.github.iotexproject.grpc.types.BlockMetaOrBuilder>(
blkMetas_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
blkMetas_ = null;
}
return blkMetasBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetBlockMetasResponse)
}
@@ -753,18 +813,7 @@ public GetBlockMetasResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetBlockMetasResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponseOrBuilder.java
index cb7d875..d91ce5f 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetBlockMetasResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequest.java
index 05e4ac4..cf8c53a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,73 @@
* Protobuf type {@code iotexapi.GetChainMetaRequest}
*/
public final class GetChainMetaRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetChainMetaRequest)
GetChainMetaRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetChainMetaRequest.class.getName());
- }
// Use GetChainMetaRequest.newBuilder() to construct.
- private GetChainMetaRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetChainMetaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetChainMetaRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetChainMetaRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetChainMetaRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetChainMetaRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetChainMetaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -56,7 +94,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -65,7 +103,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -80,7 +118,7 @@ public boolean equals(final java.lang.Object obj) {
}
com.github.iotexproject.grpc.api.GetChainMetaRequest other = (com.github.iotexproject.grpc.api.GetChainMetaRequest) obj;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -91,7 +129,7 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -130,41 +168,39 @@ public static com.github.iotexproject.grpc.api.GetChainMetaRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetChainMetaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetChainMetaRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetChainMetaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetChainMetaRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetChainMetaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetChainMetaRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -184,7 +220,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -192,7 +228,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetChainMetaRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetChainMetaRequest)
com.github.iotexproject.grpc.api.GetChainMetaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -201,7 +237,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetChainMetaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -210,13 +246,18 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetChainMetaRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
@@ -251,6 +292,38 @@ public com.github.iotexproject.grpc.api.GetChainMetaRequest buildPartial() {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetChainMetaRequest) {
@@ -263,7 +336,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.github.iotexproject.grpc.api.GetChainMetaRequest other) {
if (other == com.github.iotexproject.grpc.api.GetChainMetaRequest.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -278,32 +351,31 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetChainMetaRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetChainMetaRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetChainMetaRequest)
}
@@ -325,18 +397,7 @@ public GetChainMetaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetChainMetaRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequestOrBuilder.java
index e66391d..36febbb 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponse.java
index 4b77371..0ac4c03 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,41 +7,99 @@
* Protobuf type {@code iotexapi.GetChainMetaResponse}
*/
public final class GetChainMetaResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetChainMetaResponse)
GetChainMetaResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetChainMetaResponse.class.getName());
- }
// Use GetChainMetaResponse.newBuilder() to construct.
- private GetChainMetaResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetChainMetaResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetChainMetaResponse() {
syncStage_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetChainMetaResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetChainMetaResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.ChainMeta.Builder subBuilder = null;
+ if (chainMeta_ != null) {
+ subBuilder = chainMeta_.toBuilder();
+ }
+ chainMeta_ = input.readMessage(com.github.iotexproject.grpc.types.ChainMeta.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(chainMeta_);
+ chainMeta_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ syncStage_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetChainMetaResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetChainMetaResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetChainMetaResponse.class, com.github.iotexproject.grpc.api.GetChainMetaResponse.Builder.class);
}
- private int bitField0_;
public static final int CHAINMETA_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.ChainMeta chainMeta_;
/**
@@ -52,7 +108,7 @@ private GetChainMetaResponse() {
*/
@java.lang.Override
public boolean hasChainMeta() {
- return ((bitField0_ & 0x00000001) != 0);
+ return chainMeta_ != null;
}
/**
* .iotextypes.ChainMeta chainMeta = 1;
@@ -67,12 +123,11 @@ public com.github.iotexproject.grpc.types.ChainMeta getChainMeta() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ChainMetaOrBuilder getChainMetaOrBuilder() {
- return chainMeta_ == null ? com.github.iotexproject.grpc.types.ChainMeta.getDefaultInstance() : chainMeta_;
+ return getChainMeta();
}
public static final int SYNCSTAGE_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object syncStage_ = "";
+ private volatile java.lang.Object syncStage_;
/**
*
* sync stage
@@ -131,13 +186,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (chainMeta_ != null) {
output.writeMessage(1, getChainMeta());
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(syncStage_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, syncStage_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncStage_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, syncStage_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -146,14 +201,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (chainMeta_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getChainMeta());
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(syncStage_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, syncStage_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncStage_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, syncStage_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -175,7 +230,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getSyncStage()
.equals(other.getSyncStage())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -192,7 +247,7 @@ public int hashCode() {
}
hash = (37 * hash) + SYNCSTAGE_FIELD_NUMBER;
hash = (53 * hash) + getSyncStage().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -231,41 +286,39 @@ public static com.github.iotexproject.grpc.api.GetChainMetaResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetChainMetaResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetChainMetaResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetChainMetaResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetChainMetaResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetChainMetaResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetChainMetaResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -285,7 +338,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -293,7 +346,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetChainMetaResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetChainMetaResponse)
com.github.iotexproject.grpc.api.GetChainMetaResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -302,7 +355,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetChainMetaResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -315,26 +368,26 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getChainMetaFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- chainMeta_ = null;
- if (chainMetaBuilder_ != null) {
- chainMetaBuilder_.dispose();
+ if (chainMetaBuilder_ == null) {
+ chainMeta_ = null;
+ } else {
+ chainMeta_ = null;
chainMetaBuilder_ = null;
}
syncStage_ = "";
+
return this;
}
@@ -361,26 +414,48 @@ public com.github.iotexproject.grpc.api.GetChainMetaResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetChainMetaResponse buildPartial() {
com.github.iotexproject.grpc.api.GetChainMetaResponse result = new com.github.iotexproject.grpc.api.GetChainMetaResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (chainMetaBuilder_ == null) {
+ result.chainMeta_ = chainMeta_;
+ } else {
+ result.chainMeta_ = chainMetaBuilder_.build();
+ }
+ result.syncStage_ = syncStage_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetChainMetaResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.chainMeta_ = chainMetaBuilder_ == null
- ? chainMeta_
- : chainMetaBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.syncStage_ = syncStage_;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetChainMetaResponse) {
@@ -398,10 +473,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetChainMetaResponse o
}
if (!other.getSyncStage().isEmpty()) {
syncStage_ = other.syncStage_;
- bitField0_ |= 0x00000002;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -416,55 +490,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetChainMetaResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getChainMetaFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- syncStage_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetChainMetaResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.ChainMeta chainMeta_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ChainMeta, com.github.iotexproject.grpc.types.ChainMeta.Builder, com.github.iotexproject.grpc.types.ChainMetaOrBuilder> chainMetaBuilder_;
/**
* .iotextypes.ChainMeta chainMeta = 1;
* @return Whether the chainMeta field is set.
*/
public boolean hasChainMeta() {
- return ((bitField0_ & 0x00000001) != 0);
+ return chainMetaBuilder_ != null || chainMeta_ != null;
}
/**
* .iotextypes.ChainMeta chainMeta = 1;
@@ -486,11 +534,11 @@ public Builder setChainMeta(com.github.iotexproject.grpc.types.ChainMeta value)
throw new NullPointerException();
}
chainMeta_ = value;
+ onChanged();
} else {
chainMetaBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -500,11 +548,11 @@ public Builder setChainMeta(
com.github.iotexproject.grpc.types.ChainMeta.Builder builderForValue) {
if (chainMetaBuilder_ == null) {
chainMeta_ = builderForValue.build();
+ onChanged();
} else {
chainMetaBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -512,40 +560,38 @@ public Builder setChainMeta(
*/
public Builder mergeChainMeta(com.github.iotexproject.grpc.types.ChainMeta value) {
if (chainMetaBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- chainMeta_ != null &&
- chainMeta_ != com.github.iotexproject.grpc.types.ChainMeta.getDefaultInstance()) {
- getChainMetaBuilder().mergeFrom(value);
+ if (chainMeta_ != null) {
+ chainMeta_ =
+ com.github.iotexproject.grpc.types.ChainMeta.newBuilder(chainMeta_).mergeFrom(value).buildPartial();
} else {
chainMeta_ = value;
}
+ onChanged();
} else {
chainMetaBuilder_.mergeFrom(value);
}
- if (chainMeta_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.ChainMeta chainMeta = 1;
*/
public Builder clearChainMeta() {
- bitField0_ = (bitField0_ & ~0x00000001);
- chainMeta_ = null;
- if (chainMetaBuilder_ != null) {
- chainMetaBuilder_.dispose();
+ if (chainMetaBuilder_ == null) {
+ chainMeta_ = null;
+ onChanged();
+ } else {
+ chainMeta_ = null;
chainMetaBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.ChainMeta chainMeta = 1;
*/
public com.github.iotexproject.grpc.types.ChainMeta.Builder getChainMetaBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getChainMetaFieldBuilder().getBuilder();
}
@@ -563,11 +609,11 @@ public com.github.iotexproject.grpc.types.ChainMetaOrBuilder getChainMetaOrBuild
/**
* .iotextypes.ChainMeta chainMeta = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ChainMeta, com.github.iotexproject.grpc.types.ChainMeta.Builder, com.github.iotexproject.grpc.types.ChainMetaOrBuilder>
getChainMetaFieldBuilder() {
if (chainMetaBuilder_ == null) {
- chainMetaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ chainMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ChainMeta, com.github.iotexproject.grpc.types.ChainMeta.Builder, com.github.iotexproject.grpc.types.ChainMetaOrBuilder>(
getChainMeta(),
getParentForChildren(),
@@ -630,9 +676,11 @@ public java.lang.String getSyncStage() {
*/
public Builder setSyncStage(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
syncStage_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -645,8 +693,8 @@ public Builder setSyncStage(
* @return This builder for chaining.
*/
public Builder clearSyncStage() {
+
syncStage_ = getDefaultInstance().getSyncStage();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -661,13 +709,27 @@ public Builder clearSyncStage() {
*/
public Builder setSyncStageBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
syncStage_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetChainMetaResponse)
}
@@ -689,18 +751,7 @@ public GetChainMetaResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetChainMetaResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponseOrBuilder.java
index c9af8d5..51738f9 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetChainMetaResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequest.java
index 8e8c1df..5fee60c 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequest.java
@@ -1,46 +1,88 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
/**
*
- *
* election APIs
*
*
* Protobuf type {@code iotexapi.GetElectionBucketsRequest}
*/
public final class GetElectionBucketsRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetElectionBucketsRequest)
GetElectionBucketsRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetElectionBucketsRequest.class.getName());
- }
// Use GetElectionBucketsRequest.newBuilder() to construct.
- private GetElectionBucketsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetElectionBucketsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetElectionBucketsRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetElectionBucketsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetElectionBucketsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ epochNum_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetElectionBucketsRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetElectionBucketsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -48,7 +90,7 @@ private GetElectionBucketsRequest() {
}
public static final int EPOCHNUM_FIELD_NUMBER = 1;
- private long epochNum_ = 0L;
+ private long epochNum_;
/**
* uint64 epochNum = 1;
* @return The epochNum.
@@ -75,7 +117,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (epochNum_ != 0L) {
output.writeUInt64(1, epochNum_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -88,7 +130,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, epochNum_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -105,7 +147,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEpochNum()
!= other.getEpochNum()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -119,7 +161,7 @@ public int hashCode() {
hash = (37 * hash) + EPOCHNUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEpochNum());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -158,41 +200,39 @@ public static com.github.iotexproject.grpc.api.GetElectionBucketsRequest parseFr
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetElectionBucketsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetElectionBucketsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -212,20 +252,19 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
- *
* election APIs
*
*
* Protobuf type {@code iotexapi.GetElectionBucketsRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetElectionBucketsRequest)
com.github.iotexproject.grpc.api.GetElectionBucketsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -234,7 +273,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetElectionBucketsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -243,19 +282,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetElectionBucketsRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
epochNum_ = 0L;
+
return this;
}
@@ -282,18 +326,43 @@ public com.github.iotexproject.grpc.api.GetElectionBucketsRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetElectionBucketsRequest buildPartial() {
com.github.iotexproject.grpc.api.GetElectionBucketsRequest result = new com.github.iotexproject.grpc.api.GetElectionBucketsRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.epochNum_ = epochNum_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetElectionBucketsRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.epochNum_ = epochNum_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetElectionBucketsRequest) {
@@ -309,7 +378,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetElectionBucketsRequ
if (other.getEpochNum() != 0L) {
setEpochNum(other.getEpochNum());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -324,38 +393,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetElectionBucketsRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- epochNum_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetElectionBucketsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long epochNum_ ;
/**
@@ -372,9 +422,8 @@ public long getEpochNum() {
* @return This builder for chaining.
*/
public Builder setEpochNum(long value) {
-
+
epochNum_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -383,11 +432,23 @@ public Builder setEpochNum(long value) {
* @return This builder for chaining.
*/
public Builder clearEpochNum() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
epochNum_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetElectionBucketsRequest)
}
@@ -409,18 +470,7 @@ public GetElectionBucketsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetElectionBucketsRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequestOrBuilder.java
index c4e2474..edf8bbb 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponse.java
index abab57f..c8537c4 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,87 @@
* Protobuf type {@code iotexapi.GetElectionBucketsResponse}
*/
public final class GetElectionBucketsResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetElectionBucketsResponse)
GetElectionBucketsResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetElectionBucketsResponse.class.getName());
- }
// Use GetElectionBucketsResponse.newBuilder() to construct.
- private GetElectionBucketsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetElectionBucketsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetElectionBucketsResponse() {
buckets_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetElectionBucketsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetElectionBucketsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ buckets_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ buckets_.add(
+ input.readMessage(com.github.iotexproject.grpc.types.ElectionBucket.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ buckets_ = java.util.Collections.unmodifiableList(buckets_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetElectionBucketsResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetElectionBucketsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +95,6 @@ private GetElectionBucketsResponse() {
}
public static final int BUCKETS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
private java.util.List buckets_;
/**
* repeated .iotextypes.ElectionBucket buckets = 1;
@@ -101,7 +151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < buckets_.size(); i++) {
output.writeMessage(1, buckets_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -114,7 +164,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, buckets_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -131,7 +181,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBucketsList()
.equals(other.getBucketsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -146,7 +196,7 @@ public int hashCode() {
hash = (37 * hash) + BUCKETS_FIELD_NUMBER;
hash = (53 * hash) + getBucketsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -185,41 +235,39 @@ public static com.github.iotexproject.grpc.api.GetElectionBucketsResponse parseF
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetElectionBucketsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetElectionBucketsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetElectionBucketsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -239,7 +287,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -247,7 +295,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetElectionBucketsResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetElectionBucketsResponse)
com.github.iotexproject.grpc.api.GetElectionBucketsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -256,7 +304,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetElectionBucketsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,25 +313,29 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetElectionBucketsResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getBucketsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (bucketsBuilder_ == null) {
buckets_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- buckets_ = null;
bucketsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -310,13 +362,7 @@ public com.github.iotexproject.grpc.api.GetElectionBucketsResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetElectionBucketsResponse buildPartial() {
com.github.iotexproject.grpc.api.GetElectionBucketsResponse result = new com.github.iotexproject.grpc.api.GetElectionBucketsResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetElectionBucketsResponse result) {
+ int from_bitField0_ = bitField0_;
if (bucketsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
buckets_ = java.util.Collections.unmodifiableList(buckets_);
@@ -326,12 +372,42 @@ private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetElec
} else {
result.buckets_ = bucketsBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetElectionBucketsResponse result) {
- int from_bitField0_ = bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetElectionBucketsResponse) {
@@ -363,14 +439,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetElectionBucketsResp
buckets_ = other.buckets_;
bitField0_ = (bitField0_ & ~0x00000001);
bucketsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBucketsFieldBuilder() : null;
} else {
bucketsBuilder_.addAllMessages(other.buckets_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -385,43 +461,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetElectionBucketsResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.github.iotexproject.grpc.types.ElectionBucket m =
- input.readMessage(
- com.github.iotexproject.grpc.types.ElectionBucket.parser(),
- extensionRegistry);
- if (bucketsBuilder_ == null) {
- ensureBucketsIsMutable();
- buckets_.add(m);
- } else {
- bucketsBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetElectionBucketsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -435,7 +485,7 @@ private void ensureBucketsIsMutable() {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.ElectionBucket, com.github.iotexproject.grpc.types.ElectionBucket.Builder, com.github.iotexproject.grpc.types.ElectionBucketOrBuilder> bucketsBuilder_;
/**
@@ -651,11 +701,11 @@ public com.github.iotexproject.grpc.types.ElectionBucket.Builder addBucketsBuild
getBucketsBuilderList() {
return getBucketsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.ElectionBucket, com.github.iotexproject.grpc.types.ElectionBucket.Builder, com.github.iotexproject.grpc.types.ElectionBucketOrBuilder>
getBucketsFieldBuilder() {
if (bucketsBuilder_ == null) {
- bucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ bucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.ElectionBucket, com.github.iotexproject.grpc.types.ElectionBucket.Builder, com.github.iotexproject.grpc.types.ElectionBucketOrBuilder>(
buckets_,
((bitField0_ & 0x00000001) != 0),
@@ -665,6 +715,18 @@ public com.github.iotexproject.grpc.types.ElectionBucket.Builder addBucketsBuild
}
return bucketsBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetElectionBucketsResponse)
}
@@ -686,18 +748,7 @@ public GetElectionBucketsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetElectionBucketsResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponseOrBuilder.java
index cf983a7..4187449 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetElectionBucketsResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequest.java
index 4122019..4d7774e 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,78 @@
* Protobuf type {@code iotexapi.GetEpochMetaRequest}
*/
public final class GetEpochMetaRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetEpochMetaRequest)
GetEpochMetaRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetEpochMetaRequest.class.getName());
- }
// Use GetEpochMetaRequest.newBuilder() to construct.
- private GetEpochMetaRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetEpochMetaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEpochMetaRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetEpochMetaRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetEpochMetaRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ epochNumber_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEpochMetaRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEpochMetaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +86,7 @@ private GetEpochMetaRequest() {
}
public static final int EPOCHNUMBER_FIELD_NUMBER = 1;
- private long epochNumber_ = 0L;
+ private long epochNumber_;
/**
* uint64 epochNumber = 1;
* @return The epochNumber.
@@ -70,7 +113,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (epochNumber_ != 0L) {
output.writeUInt64(1, epochNumber_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -83,7 +126,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, epochNumber_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -100,7 +143,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEpochNumber()
!= other.getEpochNumber()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (37 * hash) + EPOCHNUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEpochNumber());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.api.GetEpochMetaRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetEpochMetaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEpochMetaRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetEpochMetaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetEpochMetaRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetEpochMetaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEpochMetaRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetEpochMetaRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetEpochMetaRequest)
com.github.iotexproject.grpc.api.GetEpochMetaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEpochMetaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetEpochMetaRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
epochNumber_ = 0L;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.api.GetEpochMetaRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetEpochMetaRequest buildPartial() {
com.github.iotexproject.grpc.api.GetEpochMetaRequest result = new com.github.iotexproject.grpc.api.GetEpochMetaRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.epochNumber_ = epochNumber_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetEpochMetaRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.epochNumber_ = epochNumber_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetEpochMetaRequest) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetEpochMetaRequest ot
if (other.getEpochNumber() != 0L) {
setEpochNumber(other.getEpochNumber());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetEpochMetaRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- epochNumber_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetEpochMetaRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long epochNumber_ ;
/**
@@ -362,9 +414,8 @@ public long getEpochNumber() {
* @return This builder for chaining.
*/
public Builder setEpochNumber(long value) {
-
+
epochNumber_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +424,23 @@ public Builder setEpochNumber(long value) {
* @return This builder for chaining.
*/
public Builder clearEpochNumber() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
epochNumber_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetEpochMetaRequest)
}
@@ -399,18 +462,7 @@ public GetEpochMetaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetEpochMetaRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequestOrBuilder.java
index 8b40391..be63cfd 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponse.java
index d50ed9c..fd949ca 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,41 +7,111 @@
* Protobuf type {@code iotexapi.GetEpochMetaResponse}
*/
public final class GetEpochMetaResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetEpochMetaResponse)
GetEpochMetaResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetEpochMetaResponse.class.getName());
- }
// Use GetEpochMetaResponse.newBuilder() to construct.
- private GetEpochMetaResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetEpochMetaResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEpochMetaResponse() {
blockProducersInfo_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetEpochMetaResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetEpochMetaResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.EpochData.Builder subBuilder = null;
+ if (epochData_ != null) {
+ subBuilder = epochData_.toBuilder();
+ }
+ epochData_ = input.readMessage(com.github.iotexproject.grpc.types.EpochData.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(epochData_);
+ epochData_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 16: {
+
+ totalBlocks_ = input.readUInt64();
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ blockProducersInfo_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ blockProducersInfo_.add(
+ input.readMessage(com.github.iotexproject.grpc.api.BlockProducerInfo.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ blockProducersInfo_ = java.util.Collections.unmodifiableList(blockProducersInfo_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEpochMetaResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEpochMetaResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetEpochMetaResponse.class, com.github.iotexproject.grpc.api.GetEpochMetaResponse.Builder.class);
}
- private int bitField0_;
public static final int EPOCHDATA_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.EpochData epochData_;
/**
@@ -52,7 +120,7 @@ private GetEpochMetaResponse() {
*/
@java.lang.Override
public boolean hasEpochData() {
- return ((bitField0_ & 0x00000001) != 0);
+ return epochData_ != null;
}
/**
* .iotextypes.EpochData epochData = 1;
@@ -67,11 +135,11 @@ public com.github.iotexproject.grpc.types.EpochData getEpochData() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.EpochDataOrBuilder getEpochDataOrBuilder() {
- return epochData_ == null ? com.github.iotexproject.grpc.types.EpochData.getDefaultInstance() : epochData_;
+ return getEpochData();
}
public static final int TOTALBLOCKS_FIELD_NUMBER = 2;
- private long totalBlocks_ = 0L;
+ private long totalBlocks_;
/**
* uint64 totalBlocks = 2;
* @return The totalBlocks.
@@ -82,7 +150,6 @@ public long getTotalBlocks() {
}
public static final int BLOCKPRODUCERSINFO_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
private java.util.List blockProducersInfo_;
/**
* repeated .iotexapi.BlockProducerInfo blockProducersInfo = 3;
@@ -136,7 +203,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (epochData_ != null) {
output.writeMessage(1, getEpochData());
}
if (totalBlocks_ != 0L) {
@@ -145,7 +212,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < blockProducersInfo_.size(); i++) {
output.writeMessage(3, blockProducersInfo_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -154,7 +221,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (epochData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEpochData());
}
@@ -166,7 +233,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, blockProducersInfo_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -190,7 +257,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getTotalBlocks()) return false;
if (!getBlockProducersInfoList()
.equals(other.getBlockProducersInfoList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -212,7 +279,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKPRODUCERSINFO_FIELD_NUMBER;
hash = (53 * hash) + getBlockProducersInfoList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -251,41 +318,39 @@ public static com.github.iotexproject.grpc.api.GetEpochMetaResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetEpochMetaResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEpochMetaResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetEpochMetaResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetEpochMetaResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetEpochMetaResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEpochMetaResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -305,7 +370,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -313,7 +378,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetEpochMetaResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetEpochMetaResponse)
com.github.iotexproject.grpc.api.GetEpochMetaResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -322,7 +387,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEpochMetaResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -335,34 +400,33 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getEpochDataFieldBuilder();
getBlockProducersInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- epochData_ = null;
- if (epochDataBuilder_ != null) {
- epochDataBuilder_.dispose();
+ if (epochDataBuilder_ == null) {
+ epochData_ = null;
+ } else {
+ epochData_ = null;
epochDataBuilder_ = null;
}
totalBlocks_ = 0L;
+
if (blockProducersInfoBuilder_ == null) {
blockProducersInfo_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- blockProducersInfo_ = null;
blockProducersInfoBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -389,39 +453,58 @@ public com.github.iotexproject.grpc.api.GetEpochMetaResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetEpochMetaResponse buildPartial() {
com.github.iotexproject.grpc.api.GetEpochMetaResponse result = new com.github.iotexproject.grpc.api.GetEpochMetaResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetEpochMetaResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (epochDataBuilder_ == null) {
+ result.epochData_ = epochData_;
+ } else {
+ result.epochData_ = epochDataBuilder_.build();
+ }
+ result.totalBlocks_ = totalBlocks_;
if (blockProducersInfoBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
blockProducersInfo_ = java.util.Collections.unmodifiableList(blockProducersInfo_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.blockProducersInfo_ = blockProducersInfo_;
} else {
result.blockProducersInfo_ = blockProducersInfoBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetEpochMetaResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.epochData_ = epochDataBuilder_ == null
- ? epochData_
- : epochDataBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.totalBlocks_ = totalBlocks_;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetEpochMetaResponse) {
@@ -444,7 +527,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetEpochMetaResponse o
if (!other.blockProducersInfo_.isEmpty()) {
if (blockProducersInfo_.isEmpty()) {
blockProducersInfo_ = other.blockProducersInfo_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlockProducersInfoIsMutable();
blockProducersInfo_.addAll(other.blockProducersInfo_);
@@ -457,16 +540,16 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetEpochMetaResponse o
blockProducersInfoBuilder_.dispose();
blockProducersInfoBuilder_ = null;
blockProducersInfo_ = other.blockProducersInfo_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
blockProducersInfoBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlockProducersInfoFieldBuilder() : null;
} else {
blockProducersInfoBuilder_.addAllMessages(other.blockProducersInfo_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -481,68 +564,30 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetEpochMetaResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getEpochDataFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16: {
- totalBlocks_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26: {
- com.github.iotexproject.grpc.api.BlockProducerInfo m =
- input.readMessage(
- com.github.iotexproject.grpc.api.BlockProducerInfo.parser(),
- extensionRegistry);
- if (blockProducersInfoBuilder_ == null) {
- ensureBlockProducersInfoIsMutable();
- blockProducersInfo_.add(m);
- } else {
- blockProducersInfoBuilder_.addMessage(m);
- }
- break;
- } // case 26
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetEpochMetaResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
private com.github.iotexproject.grpc.types.EpochData epochData_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.EpochData, com.github.iotexproject.grpc.types.EpochData.Builder, com.github.iotexproject.grpc.types.EpochDataOrBuilder> epochDataBuilder_;
/**
* .iotextypes.EpochData epochData = 1;
* @return Whether the epochData field is set.
*/
public boolean hasEpochData() {
- return ((bitField0_ & 0x00000001) != 0);
+ return epochDataBuilder_ != null || epochData_ != null;
}
/**
* .iotextypes.EpochData epochData = 1;
@@ -564,11 +609,11 @@ public Builder setEpochData(com.github.iotexproject.grpc.types.EpochData value)
throw new NullPointerException();
}
epochData_ = value;
+ onChanged();
} else {
epochDataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -578,11 +623,11 @@ public Builder setEpochData(
com.github.iotexproject.grpc.types.EpochData.Builder builderForValue) {
if (epochDataBuilder_ == null) {
epochData_ = builderForValue.build();
+ onChanged();
} else {
epochDataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -590,40 +635,38 @@ public Builder setEpochData(
*/
public Builder mergeEpochData(com.github.iotexproject.grpc.types.EpochData value) {
if (epochDataBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- epochData_ != null &&
- epochData_ != com.github.iotexproject.grpc.types.EpochData.getDefaultInstance()) {
- getEpochDataBuilder().mergeFrom(value);
+ if (epochData_ != null) {
+ epochData_ =
+ com.github.iotexproject.grpc.types.EpochData.newBuilder(epochData_).mergeFrom(value).buildPartial();
} else {
epochData_ = value;
}
+ onChanged();
} else {
epochDataBuilder_.mergeFrom(value);
}
- if (epochData_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.EpochData epochData = 1;
*/
public Builder clearEpochData() {
- bitField0_ = (bitField0_ & ~0x00000001);
- epochData_ = null;
- if (epochDataBuilder_ != null) {
- epochDataBuilder_.dispose();
+ if (epochDataBuilder_ == null) {
+ epochData_ = null;
+ onChanged();
+ } else {
+ epochData_ = null;
epochDataBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.EpochData epochData = 1;
*/
public com.github.iotexproject.grpc.types.EpochData.Builder getEpochDataBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getEpochDataFieldBuilder().getBuilder();
}
@@ -641,11 +684,11 @@ public com.github.iotexproject.grpc.types.EpochDataOrBuilder getEpochDataOrBuild
/**
* .iotextypes.EpochData epochData = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.EpochData, com.github.iotexproject.grpc.types.EpochData.Builder, com.github.iotexproject.grpc.types.EpochDataOrBuilder>
getEpochDataFieldBuilder() {
if (epochDataBuilder_ == null) {
- epochDataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ epochDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.EpochData, com.github.iotexproject.grpc.types.EpochData.Builder, com.github.iotexproject.grpc.types.EpochDataOrBuilder>(
getEpochData(),
getParentForChildren(),
@@ -670,9 +713,8 @@ public long getTotalBlocks() {
* @return This builder for chaining.
*/
public Builder setTotalBlocks(long value) {
-
+
totalBlocks_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -681,7 +723,7 @@ public Builder setTotalBlocks(long value) {
* @return This builder for chaining.
*/
public Builder clearTotalBlocks() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
totalBlocks_ = 0L;
onChanged();
return this;
@@ -690,13 +732,13 @@ public Builder clearTotalBlocks() {
private java.util.List blockProducersInfo_ =
java.util.Collections.emptyList();
private void ensureBlockProducersInfoIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
blockProducersInfo_ = new java.util.ArrayList(blockProducersInfo_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000001;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockProducerInfo, com.github.iotexproject.grpc.api.BlockProducerInfo.Builder, com.github.iotexproject.grpc.api.BlockProducerInfoOrBuilder> blockProducersInfoBuilder_;
/**
@@ -842,7 +884,7 @@ public Builder addAllBlockProducersInfo(
public Builder clearBlockProducersInfo() {
if (blockProducersInfoBuilder_ == null) {
blockProducersInfo_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blockProducersInfoBuilder_.clear();
@@ -912,20 +954,32 @@ public com.github.iotexproject.grpc.api.BlockProducerInfo.Builder addBlockProduc
getBlockProducersInfoBuilderList() {
return getBlockProducersInfoFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockProducerInfo, com.github.iotexproject.grpc.api.BlockProducerInfo.Builder, com.github.iotexproject.grpc.api.BlockProducerInfoOrBuilder>
getBlockProducersInfoFieldBuilder() {
if (blockProducersInfoBuilder_ == null) {
- blockProducersInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ blockProducersInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockProducerInfo, com.github.iotexproject.grpc.api.BlockProducerInfo.Builder, com.github.iotexproject.grpc.api.BlockProducerInfoOrBuilder>(
blockProducersInfo_,
- ((bitField0_ & 0x00000004) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
blockProducersInfo_ = null;
}
return blockProducersInfoBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetEpochMetaResponse)
}
@@ -947,18 +1001,7 @@ public GetEpochMetaResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetEpochMetaResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponseOrBuilder.java
index 18aa06d..5cc3215 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEpochMetaResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequest.java
index db26a77..ae1996b 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -13,34 +11,80 @@
* Protobuf type {@code iotexapi.GetEvmTransfersByActionHashRequest}
*/
public final class GetEvmTransfersByActionHashRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetEvmTransfersByActionHashRequest)
GetEvmTransfersByActionHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetEvmTransfersByActionHashRequest.class.getName());
- }
// Use GetEvmTransfersByActionHashRequest.newBuilder() to construct.
- private GetEvmTransfersByActionHashRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetEvmTransfersByActionHashRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEvmTransfersByActionHashRequest() {
actionHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetEvmTransfersByActionHashRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetEvmTransfersByActionHashRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ actionHash_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByActionHashRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByActionHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -48,8 +92,7 @@ private GetEvmTransfersByActionHashRequest() {
}
public static final int ACTIONHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object actionHash_ = "";
+ private volatile java.lang.Object actionHash_;
/**
* string actionHash = 1;
* @return The actionHash.
@@ -100,10 +143,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -112,10 +155,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -132,7 +175,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionHash()
.equals(other.getActionHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -145,7 +188,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACTIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getActionHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -184,41 +227,39 @@ public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashReques
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -238,7 +279,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -250,7 +291,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetEvmTransfersByActionHashRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetEvmTransfersByActionHashRequest)
com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -259,7 +300,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByActionHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -268,19 +309,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
actionHash_ = "";
+
return this;
}
@@ -307,18 +353,43 @@ public com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest build
@java.lang.Override
public com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest buildPartial() {
com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest result = new com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.actionHash_ = actionHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionHash_ = actionHash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest) {
@@ -333,10 +404,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetEvmTransfersByActio
if (other == com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest.getDefaultInstance()) return this;
if (!other.getActionHash().isEmpty()) {
actionHash_ = other.actionHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -351,38 +421,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- actionHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object actionHash_ = "";
/**
@@ -425,9 +476,11 @@ public java.lang.String getActionHash() {
*/
public Builder setActionHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -436,8 +489,8 @@ public Builder setActionHash(
* @return This builder for chaining.
*/
public Builder clearActionHash() {
+
actionHash_ = getDefaultInstance().getActionHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -448,13 +501,27 @@ public Builder clearActionHash() {
*/
public Builder setActionHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetEvmTransfersByActionHashRequest)
}
@@ -476,18 +543,7 @@ public GetEvmTransfersByActionHashRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetEvmTransfersByActionHashRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequestOrBuilder.java
index 766047b..ac25793 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponse.java
index 552d6ba..723b801 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -13,40 +11,92 @@
* Protobuf type {@code iotexapi.GetEvmTransfersByActionHashResponse}
*/
public final class GetEvmTransfersByActionHashResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetEvmTransfersByActionHashResponse)
GetEvmTransfersByActionHashResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetEvmTransfersByActionHashResponse.class.getName());
- }
// Use GetEvmTransfersByActionHashResponse.newBuilder() to construct.
- private GetEvmTransfersByActionHashResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetEvmTransfersByActionHashResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEvmTransfersByActionHashResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetEvmTransfersByActionHashResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetEvmTransfersByActionHashResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.ActionEvmTransfer.Builder subBuilder = null;
+ if (actionEvmTransfers_ != null) {
+ subBuilder = actionEvmTransfers_.toBuilder();
+ }
+ actionEvmTransfers_ = input.readMessage(com.github.iotexproject.grpc.types.ActionEvmTransfer.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(actionEvmTransfers_);
+ actionEvmTransfers_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByActionHashResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByActionHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse.class, com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse.Builder.class);
}
- private int bitField0_;
public static final int ACTIONEVMTRANSFERS_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.ActionEvmTransfer actionEvmTransfers_;
/**
@@ -55,7 +105,7 @@ private GetEvmTransfersByActionHashResponse() {
*/
@java.lang.Override
public boolean hasActionEvmTransfers() {
- return ((bitField0_ & 0x00000001) != 0);
+ return actionEvmTransfers_ != null;
}
/**
* .iotextypes.ActionEvmTransfer actionEvmTransfers = 1;
@@ -70,7 +120,7 @@ public com.github.iotexproject.grpc.types.ActionEvmTransfer getActionEvmTransfer
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ActionEvmTransferOrBuilder getActionEvmTransfersOrBuilder() {
- return actionEvmTransfers_ == null ? com.github.iotexproject.grpc.types.ActionEvmTransfer.getDefaultInstance() : actionEvmTransfers_;
+ return getActionEvmTransfers();
}
private byte memoizedIsInitialized = -1;
@@ -87,10 +137,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (actionEvmTransfers_ != null) {
output.writeMessage(1, getActionEvmTransfers());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -99,11 +149,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (actionEvmTransfers_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getActionEvmTransfers());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -123,7 +173,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionEvmTransfers()
.equals(other.getActionEvmTransfers())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -138,7 +188,7 @@ public int hashCode() {
hash = (37 * hash) + ACTIONEVMTRANSFERS_FIELD_NUMBER;
hash = (53 * hash) + getActionEvmTransfers().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -177,41 +227,39 @@ public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashRespon
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -231,7 +279,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -243,7 +291,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetEvmTransfersByActionHashResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetEvmTransfersByActionHashResponse)
com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -252,7 +300,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByActionHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,23 +313,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getActionEvmTransfersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- actionEvmTransfers_ = null;
- if (actionEvmTransfersBuilder_ != null) {
- actionEvmTransfersBuilder_.dispose();
+ if (actionEvmTransfersBuilder_ == null) {
+ actionEvmTransfers_ = null;
+ } else {
+ actionEvmTransfers_ = null;
actionEvmTransfersBuilder_ = null;
}
return this;
@@ -310,23 +357,47 @@ public com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse buil
@java.lang.Override
public com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse buildPartial() {
com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse result = new com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (actionEvmTransfersBuilder_ == null) {
+ result.actionEvmTransfers_ = actionEvmTransfers_;
+ } else {
+ result.actionEvmTransfers_ = actionEvmTransfersBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionEvmTransfers_ = actionEvmTransfersBuilder_ == null
- ? actionEvmTransfers_
- : actionEvmTransfersBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse) {
@@ -342,7 +413,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetEvmTransfersByActio
if (other.hasActionEvmTransfers()) {
mergeActionEvmTransfers(other.getActionEvmTransfers());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -357,50 +428,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getActionEvmTransfersFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetEvmTransfersByActionHashResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.ActionEvmTransfer actionEvmTransfers_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ActionEvmTransfer, com.github.iotexproject.grpc.types.ActionEvmTransfer.Builder, com.github.iotexproject.grpc.types.ActionEvmTransferOrBuilder> actionEvmTransfersBuilder_;
/**
* .iotextypes.ActionEvmTransfer actionEvmTransfers = 1;
* @return Whether the actionEvmTransfers field is set.
*/
public boolean hasActionEvmTransfers() {
- return ((bitField0_ & 0x00000001) != 0);
+ return actionEvmTransfersBuilder_ != null || actionEvmTransfers_ != null;
}
/**
* .iotextypes.ActionEvmTransfer actionEvmTransfers = 1;
@@ -422,11 +472,11 @@ public Builder setActionEvmTransfers(com.github.iotexproject.grpc.types.ActionEv
throw new NullPointerException();
}
actionEvmTransfers_ = value;
+ onChanged();
} else {
actionEvmTransfersBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -436,11 +486,11 @@ public Builder setActionEvmTransfers(
com.github.iotexproject.grpc.types.ActionEvmTransfer.Builder builderForValue) {
if (actionEvmTransfersBuilder_ == null) {
actionEvmTransfers_ = builderForValue.build();
+ onChanged();
} else {
actionEvmTransfersBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -448,40 +498,38 @@ public Builder setActionEvmTransfers(
*/
public Builder mergeActionEvmTransfers(com.github.iotexproject.grpc.types.ActionEvmTransfer value) {
if (actionEvmTransfersBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- actionEvmTransfers_ != null &&
- actionEvmTransfers_ != com.github.iotexproject.grpc.types.ActionEvmTransfer.getDefaultInstance()) {
- getActionEvmTransfersBuilder().mergeFrom(value);
+ if (actionEvmTransfers_ != null) {
+ actionEvmTransfers_ =
+ com.github.iotexproject.grpc.types.ActionEvmTransfer.newBuilder(actionEvmTransfers_).mergeFrom(value).buildPartial();
} else {
actionEvmTransfers_ = value;
}
+ onChanged();
} else {
actionEvmTransfersBuilder_.mergeFrom(value);
}
- if (actionEvmTransfers_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.ActionEvmTransfer actionEvmTransfers = 1;
*/
public Builder clearActionEvmTransfers() {
- bitField0_ = (bitField0_ & ~0x00000001);
- actionEvmTransfers_ = null;
- if (actionEvmTransfersBuilder_ != null) {
- actionEvmTransfersBuilder_.dispose();
+ if (actionEvmTransfersBuilder_ == null) {
+ actionEvmTransfers_ = null;
+ onChanged();
+ } else {
+ actionEvmTransfers_ = null;
actionEvmTransfersBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.ActionEvmTransfer actionEvmTransfers = 1;
*/
public com.github.iotexproject.grpc.types.ActionEvmTransfer.Builder getActionEvmTransfersBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getActionEvmTransfersFieldBuilder().getBuilder();
}
@@ -499,11 +547,11 @@ public com.github.iotexproject.grpc.types.ActionEvmTransferOrBuilder getActionEv
/**
* .iotextypes.ActionEvmTransfer actionEvmTransfers = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ActionEvmTransfer, com.github.iotexproject.grpc.types.ActionEvmTransfer.Builder, com.github.iotexproject.grpc.types.ActionEvmTransferOrBuilder>
getActionEvmTransfersFieldBuilder() {
if (actionEvmTransfersBuilder_ == null) {
- actionEvmTransfersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ actionEvmTransfersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ActionEvmTransfer, com.github.iotexproject.grpc.types.ActionEvmTransfer.Builder, com.github.iotexproject.grpc.types.ActionEvmTransferOrBuilder>(
getActionEvmTransfers(),
getParentForChildren(),
@@ -512,6 +560,18 @@ public com.github.iotexproject.grpc.types.ActionEvmTransferOrBuilder getActionEv
}
return actionEvmTransfersBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetEvmTransfersByActionHashResponse)
}
@@ -533,18 +593,7 @@ public GetEvmTransfersByActionHashResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetEvmTransfersByActionHashResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponseOrBuilder.java
index 19c4292..209bca8 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByActionHashResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequest.java
index 0771708..e2f26dc 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -13,33 +11,78 @@
* Protobuf type {@code iotexapi.GetEvmTransfersByBlockHeightRequest}
*/
public final class GetEvmTransfersByBlockHeightRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetEvmTransfersByBlockHeightRequest)
GetEvmTransfersByBlockHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetEvmTransfersByBlockHeightRequest.class.getName());
- }
// Use GetEvmTransfersByBlockHeightRequest.newBuilder() to construct.
- private GetEvmTransfersByBlockHeightRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetEvmTransfersByBlockHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEvmTransfersByBlockHeightRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetEvmTransfersByBlockHeightRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetEvmTransfersByBlockHeightRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ blockHeight_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByBlockHeightRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -47,7 +90,7 @@ private GetEvmTransfersByBlockHeightRequest() {
}
public static final int BLOCKHEIGHT_FIELD_NUMBER = 1;
- private long blockHeight_ = 0L;
+ private long blockHeight_;
/**
* uint64 blockHeight = 1;
* @return The blockHeight.
@@ -74,7 +117,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (blockHeight_ != 0L) {
output.writeUInt64(1, blockHeight_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -87,7 +130,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, blockHeight_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -104,7 +147,7 @@ public boolean equals(final java.lang.Object obj) {
if (getBlockHeight()
!= other.getBlockHeight()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -118,7 +161,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKHEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -157,41 +200,39 @@ public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightReque
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -211,7 +252,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -223,7 +264,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetEvmTransfersByBlockHeightRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetEvmTransfersByBlockHeightRequest)
com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -232,7 +273,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -241,19 +282,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
blockHeight_ = 0L;
+
return this;
}
@@ -280,18 +326,43 @@ public com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest buil
@java.lang.Override
public com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest buildPartial() {
com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest result = new com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.blockHeight_ = blockHeight_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.blockHeight_ = blockHeight_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest) {
@@ -307,7 +378,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetEvmTransfersByBlock
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -322,38 +393,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- blockHeight_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long blockHeight_ ;
/**
@@ -370,9 +422,8 @@ public long getBlockHeight() {
* @return This builder for chaining.
*/
public Builder setBlockHeight(long value) {
-
+
blockHeight_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -381,11 +432,23 @@ public Builder setBlockHeight(long value) {
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
blockHeight_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetEvmTransfersByBlockHeightRequest)
}
@@ -407,18 +470,7 @@ public GetEvmTransfersByBlockHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetEvmTransfersByBlockHeightRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequestOrBuilder.java
index c555443..82fa46e 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponse.java
index 5bb407a..e481099 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -13,40 +11,92 @@
* Protobuf type {@code iotexapi.GetEvmTransfersByBlockHeightResponse}
*/
public final class GetEvmTransfersByBlockHeightResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetEvmTransfersByBlockHeightResponse)
GetEvmTransfersByBlockHeightResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetEvmTransfersByBlockHeightResponse.class.getName());
- }
// Use GetEvmTransfersByBlockHeightResponse.newBuilder() to construct.
- private GetEvmTransfersByBlockHeightResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetEvmTransfersByBlockHeightResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEvmTransfersByBlockHeightResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetEvmTransfersByBlockHeightResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetEvmTransfersByBlockHeightResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.BlockEvmTransfer.Builder subBuilder = null;
+ if (blockEvmTransfers_ != null) {
+ subBuilder = blockEvmTransfers_.toBuilder();
+ }
+ blockEvmTransfers_ = input.readMessage(com.github.iotexproject.grpc.types.BlockEvmTransfer.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(blockEvmTransfers_);
+ blockEvmTransfers_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByBlockHeightResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByBlockHeightResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse.class, com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse.Builder.class);
}
- private int bitField0_;
public static final int BLOCKEVMTRANSFERS_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.BlockEvmTransfer blockEvmTransfers_;
/**
@@ -55,7 +105,7 @@ private GetEvmTransfersByBlockHeightResponse() {
*/
@java.lang.Override
public boolean hasBlockEvmTransfers() {
- return ((bitField0_ & 0x00000001) != 0);
+ return blockEvmTransfers_ != null;
}
/**
* .iotextypes.BlockEvmTransfer blockEvmTransfers = 1;
@@ -70,7 +120,7 @@ public com.github.iotexproject.grpc.types.BlockEvmTransfer getBlockEvmTransfers(
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.BlockEvmTransferOrBuilder getBlockEvmTransfersOrBuilder() {
- return blockEvmTransfers_ == null ? com.github.iotexproject.grpc.types.BlockEvmTransfer.getDefaultInstance() : blockEvmTransfers_;
+ return getBlockEvmTransfers();
}
private byte memoizedIsInitialized = -1;
@@ -87,10 +137,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (blockEvmTransfers_ != null) {
output.writeMessage(1, getBlockEvmTransfers());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -99,11 +149,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (blockEvmTransfers_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBlockEvmTransfers());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -123,7 +173,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlockEvmTransfers()
.equals(other.getBlockEvmTransfers())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -138,7 +188,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKEVMTRANSFERS_FIELD_NUMBER;
hash = (53 * hash) + getBlockEvmTransfers().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -177,41 +227,39 @@ public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightRespo
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -231,7 +279,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -243,7 +291,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetEvmTransfersByBlockHeightResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetEvmTransfersByBlockHeightResponse)
com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -252,7 +300,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetEvmTransfersByBlockHeightResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,23 +313,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getBlockEvmTransfersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- blockEvmTransfers_ = null;
- if (blockEvmTransfersBuilder_ != null) {
- blockEvmTransfersBuilder_.dispose();
+ if (blockEvmTransfersBuilder_ == null) {
+ blockEvmTransfers_ = null;
+ } else {
+ blockEvmTransfers_ = null;
blockEvmTransfersBuilder_ = null;
}
return this;
@@ -310,23 +357,47 @@ public com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse bui
@java.lang.Override
public com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse buildPartial() {
com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse result = new com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (blockEvmTransfersBuilder_ == null) {
+ result.blockEvmTransfers_ = blockEvmTransfers_;
+ } else {
+ result.blockEvmTransfers_ = blockEvmTransfersBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.blockEvmTransfers_ = blockEvmTransfersBuilder_ == null
- ? blockEvmTransfers_
- : blockEvmTransfersBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse) {
@@ -342,7 +413,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetEvmTransfersByBlock
if (other.hasBlockEvmTransfers()) {
mergeBlockEvmTransfers(other.getBlockEvmTransfers());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -357,50 +428,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getBlockEvmTransfersFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetEvmTransfersByBlockHeightResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.BlockEvmTransfer blockEvmTransfers_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockEvmTransfer, com.github.iotexproject.grpc.types.BlockEvmTransfer.Builder, com.github.iotexproject.grpc.types.BlockEvmTransferOrBuilder> blockEvmTransfersBuilder_;
/**
* .iotextypes.BlockEvmTransfer blockEvmTransfers = 1;
* @return Whether the blockEvmTransfers field is set.
*/
public boolean hasBlockEvmTransfers() {
- return ((bitField0_ & 0x00000001) != 0);
+ return blockEvmTransfersBuilder_ != null || blockEvmTransfers_ != null;
}
/**
* .iotextypes.BlockEvmTransfer blockEvmTransfers = 1;
@@ -422,11 +472,11 @@ public Builder setBlockEvmTransfers(com.github.iotexproject.grpc.types.BlockEvmT
throw new NullPointerException();
}
blockEvmTransfers_ = value;
+ onChanged();
} else {
blockEvmTransfersBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -436,11 +486,11 @@ public Builder setBlockEvmTransfers(
com.github.iotexproject.grpc.types.BlockEvmTransfer.Builder builderForValue) {
if (blockEvmTransfersBuilder_ == null) {
blockEvmTransfers_ = builderForValue.build();
+ onChanged();
} else {
blockEvmTransfersBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -448,40 +498,38 @@ public Builder setBlockEvmTransfers(
*/
public Builder mergeBlockEvmTransfers(com.github.iotexproject.grpc.types.BlockEvmTransfer value) {
if (blockEvmTransfersBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- blockEvmTransfers_ != null &&
- blockEvmTransfers_ != com.github.iotexproject.grpc.types.BlockEvmTransfer.getDefaultInstance()) {
- getBlockEvmTransfersBuilder().mergeFrom(value);
+ if (blockEvmTransfers_ != null) {
+ blockEvmTransfers_ =
+ com.github.iotexproject.grpc.types.BlockEvmTransfer.newBuilder(blockEvmTransfers_).mergeFrom(value).buildPartial();
} else {
blockEvmTransfers_ = value;
}
+ onChanged();
} else {
blockEvmTransfersBuilder_.mergeFrom(value);
}
- if (blockEvmTransfers_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.BlockEvmTransfer blockEvmTransfers = 1;
*/
public Builder clearBlockEvmTransfers() {
- bitField0_ = (bitField0_ & ~0x00000001);
- blockEvmTransfers_ = null;
- if (blockEvmTransfersBuilder_ != null) {
- blockEvmTransfersBuilder_.dispose();
+ if (blockEvmTransfersBuilder_ == null) {
+ blockEvmTransfers_ = null;
+ onChanged();
+ } else {
+ blockEvmTransfers_ = null;
blockEvmTransfersBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.BlockEvmTransfer blockEvmTransfers = 1;
*/
public com.github.iotexproject.grpc.types.BlockEvmTransfer.Builder getBlockEvmTransfersBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getBlockEvmTransfersFieldBuilder().getBuilder();
}
@@ -499,11 +547,11 @@ public com.github.iotexproject.grpc.types.BlockEvmTransferOrBuilder getBlockEvmT
/**
* .iotextypes.BlockEvmTransfer blockEvmTransfers = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockEvmTransfer, com.github.iotexproject.grpc.types.BlockEvmTransfer.Builder, com.github.iotexproject.grpc.types.BlockEvmTransferOrBuilder>
getBlockEvmTransfersFieldBuilder() {
if (blockEvmTransfersBuilder_ == null) {
- blockEvmTransfersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ blockEvmTransfersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockEvmTransfer, com.github.iotexproject.grpc.types.BlockEvmTransfer.Builder, com.github.iotexproject.grpc.types.BlockEvmTransferOrBuilder>(
getBlockEvmTransfers(),
getParentForChildren(),
@@ -512,6 +560,18 @@ public com.github.iotexproject.grpc.types.BlockEvmTransferOrBuilder getBlockEvmT
}
return blockEvmTransfersBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetEvmTransfersByBlockHeightResponse)
}
@@ -533,18 +593,7 @@ public GetEvmTransfersByBlockHeightResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetEvmTransfersByBlockHeightResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponseOrBuilder.java
index fae684d..6e2ae96 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetEvmTransfersByBlockHeightResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlock.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlock.java
index 2042e4d..e7a6f09 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlock.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlock.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,79 @@
* Protobuf type {@code iotexapi.GetLogsByBlock}
*/
public final class GetLogsByBlock extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetLogsByBlock)
GetLogsByBlockOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetLogsByBlock.class.getName());
- }
// Use GetLogsByBlock.newBuilder() to construct.
- private GetLogsByBlock(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetLogsByBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLogsByBlock() {
blockHash_ = com.google.protobuf.ByteString.EMPTY;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetLogsByBlock();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetLogsByBlock(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+
+ blockHash_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsByBlock_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsByBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +87,7 @@ private GetLogsByBlock() {
}
public static final int BLOCKHASH_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString blockHash_;
/**
* bytes blockHash = 1;
* @return The blockHash.
@@ -71,7 +114,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!blockHash_.isEmpty()) {
output.writeBytes(1, blockHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -84,7 +127,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, blockHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -101,7 +144,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlockHash()
.equals(other.getBlockHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER;
hash = (53 * hash) + getBlockHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.api.GetLogsByBlock parseFrom(
}
public static com.github.iotexproject.grpc.api.GetLogsByBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsByBlock parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetLogsByBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetLogsByBlock parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetLogsByBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsByBlock parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetLogsByBlock}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetLogsByBlock)
com.github.iotexproject.grpc.api.GetLogsByBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsByBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetLogsByBlock.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
blockHash_ = com.google.protobuf.ByteString.EMPTY;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.api.GetLogsByBlock build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetLogsByBlock buildPartial() {
com.github.iotexproject.grpc.api.GetLogsByBlock result = new com.github.iotexproject.grpc.api.GetLogsByBlock(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.blockHash_ = blockHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetLogsByBlock result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.blockHash_ = blockHash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetLogsByBlock) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetLogsByBlock other)
if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) {
setBlockHash(other.getBlockHash());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetLogsByBlock parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- blockHash_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetLogsByBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY;
/**
@@ -362,9 +414,11 @@ public com.google.protobuf.ByteString getBlockHash() {
* @return This builder for chaining.
*/
public Builder setBlockHash(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
blockHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +427,23 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearBlockHash() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
blockHash_ = getDefaultInstance().getBlockHash();
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetLogsByBlock)
}
@@ -399,18 +465,7 @@ public GetLogsByBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetLogsByBlock(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlockOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlockOrBuilder.java
index a07fcd0..eae2643 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlockOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByBlockOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRange.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRange.java
index 9c48a07..df2a71b 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRange.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRange.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,88 @@
* Protobuf type {@code iotexapi.GetLogsByRange}
*/
public final class GetLogsByRange extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetLogsByRange)
GetLogsByRangeOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetLogsByRange.class.getName());
- }
// Use GetLogsByRange.newBuilder() to construct.
- private GetLogsByRange(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetLogsByRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLogsByRange() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetLogsByRange();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetLogsByRange(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ fromBlock_ = input.readUInt64();
+ break;
+ }
+ case 16: {
+
+ toBlock_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ paginationSize_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsByRange_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsByRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +96,7 @@ private GetLogsByRange() {
}
public static final int FROMBLOCK_FIELD_NUMBER = 1;
- private long fromBlock_ = 0L;
+ private long fromBlock_;
/**
* uint64 fromBlock = 1;
* @return The fromBlock.
@@ -54,7 +107,7 @@ public long getFromBlock() {
}
public static final int TOBLOCK_FIELD_NUMBER = 2;
- private long toBlock_ = 0L;
+ private long toBlock_;
/**
* uint64 toBlock = 2;
* @return The toBlock.
@@ -65,7 +118,7 @@ public long getToBlock() {
}
public static final int PAGINATIONSIZE_FIELD_NUMBER = 3;
- private long paginationSize_ = 0L;
+ private long paginationSize_;
/**
* uint64 paginationSize = 3;
* @return The paginationSize.
@@ -98,7 +151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (paginationSize_ != 0L) {
output.writeUInt64(3, paginationSize_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -119,7 +172,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, paginationSize_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -140,7 +193,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getToBlock()) return false;
if (getPaginationSize()
!= other.getPaginationSize()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -160,7 +213,7 @@ public int hashCode() {
hash = (37 * hash) + PAGINATIONSIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPaginationSize());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -199,41 +252,39 @@ public static com.github.iotexproject.grpc.api.GetLogsByRange parseFrom(
}
public static com.github.iotexproject.grpc.api.GetLogsByRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsByRange parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetLogsByRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetLogsByRange parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetLogsByRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsByRange parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -253,7 +304,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -261,7 +312,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetLogsByRange}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetLogsByRange)
com.github.iotexproject.grpc.api.GetLogsByRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -270,7 +321,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsByRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -279,21 +330,28 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetLogsByRange.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
fromBlock_ = 0L;
+
toBlock_ = 0L;
+
paginationSize_ = 0L;
+
return this;
}
@@ -320,24 +378,45 @@ public com.github.iotexproject.grpc.api.GetLogsByRange build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetLogsByRange buildPartial() {
com.github.iotexproject.grpc.api.GetLogsByRange result = new com.github.iotexproject.grpc.api.GetLogsByRange(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.fromBlock_ = fromBlock_;
+ result.toBlock_ = toBlock_;
+ result.paginationSize_ = paginationSize_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetLogsByRange result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.fromBlock_ = fromBlock_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.toBlock_ = toBlock_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.paginationSize_ = paginationSize_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetLogsByRange) {
@@ -359,7 +438,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetLogsByRange other)
if (other.getPaginationSize() != 0L) {
setPaginationSize(other.getPaginationSize());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -374,48 +453,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetLogsByRange parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- fromBlock_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- toBlock_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24: {
- paginationSize_ = input.readUInt64();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetLogsByRange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long fromBlock_ ;
/**
@@ -432,9 +482,8 @@ public long getFromBlock() {
* @return This builder for chaining.
*/
public Builder setFromBlock(long value) {
-
+
fromBlock_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -443,7 +492,7 @@ public Builder setFromBlock(long value) {
* @return This builder for chaining.
*/
public Builder clearFromBlock() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
fromBlock_ = 0L;
onChanged();
return this;
@@ -464,9 +513,8 @@ public long getToBlock() {
* @return This builder for chaining.
*/
public Builder setToBlock(long value) {
-
+
toBlock_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -475,7 +523,7 @@ public Builder setToBlock(long value) {
* @return This builder for chaining.
*/
public Builder clearToBlock() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
toBlock_ = 0L;
onChanged();
return this;
@@ -496,9 +544,8 @@ public long getPaginationSize() {
* @return This builder for chaining.
*/
public Builder setPaginationSize(long value) {
-
+
paginationSize_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -507,11 +554,23 @@ public Builder setPaginationSize(long value) {
* @return This builder for chaining.
*/
public Builder clearPaginationSize() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
paginationSize_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetLogsByRange)
}
@@ -533,18 +592,7 @@ public GetLogsByRange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetLogsByRange(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRangeOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRangeOrBuilder.java
index 1ad34f0..fc91ae9 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRangeOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsByRangeOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequest.java
index 645fe95..8368994 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,42 +7,121 @@
* Protobuf type {@code iotexapi.GetLogsRequest}
*/
public final class GetLogsRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetLogsRequest)
GetLogsRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetLogsRequest.class.getName());
- }
// Use GetLogsRequest.newBuilder() to construct.
- private GetLogsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLogsRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetLogsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetLogsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.LogsFilter.Builder subBuilder = null;
+ if (filter_ != null) {
+ subBuilder = filter_.toBuilder();
+ }
+ filter_ = input.readMessage(com.github.iotexproject.grpc.api.LogsFilter.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(filter_);
+ filter_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.api.GetLogsByBlock.Builder subBuilder = null;
+ if (lookupCase_ == 2) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetLogsByBlock) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetLogsByBlock.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetLogsByBlock) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 2;
+ break;
+ }
+ case 26: {
+ com.github.iotexproject.grpc.api.GetLogsByRange.Builder subBuilder = null;
+ if (lookupCase_ == 3) {
+ subBuilder = ((com.github.iotexproject.grpc.api.GetLogsByRange) lookup_).toBuilder();
+ }
+ lookup_ =
+ input.readMessage(com.github.iotexproject.grpc.api.GetLogsByRange.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.GetLogsByRange) lookup_);
+ lookup_ = subBuilder.buildPartial();
+ }
+ lookupCase_ = 3;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetLogsRequest.class, com.github.iotexproject.grpc.api.GetLogsRequest.Builder.class);
}
- private int bitField0_;
private int lookupCase_ = 0;
- @SuppressWarnings("serial")
private java.lang.Object lookup_;
public enum LookupCase
implements com.google.protobuf.Internal.EnumLite,
@@ -93,7 +170,7 @@ public int getNumber() {
*/
@java.lang.Override
public boolean hasFilter() {
- return ((bitField0_ & 0x00000001) != 0);
+ return filter_ != null;
}
/**
* .iotexapi.LogsFilter filter = 1;
@@ -108,7 +185,7 @@ public com.github.iotexproject.grpc.api.LogsFilter getFilter() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.LogsFilterOrBuilder getFilterOrBuilder() {
- return filter_ == null ? com.github.iotexproject.grpc.api.LogsFilter.getDefaultInstance() : filter_;
+ return getFilter();
}
public static final int BYBLOCK_FIELD_NUMBER = 2;
@@ -187,7 +264,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (filter_ != null) {
output.writeMessage(1, getFilter());
}
if (lookupCase_ == 2) {
@@ -196,7 +273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (lookupCase_ == 3) {
output.writeMessage(3, (com.github.iotexproject.grpc.api.GetLogsByRange) lookup_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -205,7 +282,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFilter());
}
@@ -217,7 +294,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.github.iotexproject.grpc.api.GetLogsByRange) lookup_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -250,7 +327,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -277,7 +354,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -316,41 +393,39 @@ public static com.github.iotexproject.grpc.api.GetLogsRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetLogsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetLogsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetLogsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -370,7 +445,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -378,7 +453,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetLogsRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetLogsRequest)
com.github.iotexproject.grpc.api.GetLogsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -387,7 +462,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -400,31 +475,24 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getFilterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- filter_ = null;
- if (filterBuilder_ != null) {
- filterBuilder_.dispose();
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ } else {
+ filter_ = null;
filterBuilder_ = null;
}
- if (byBlockBuilder_ != null) {
- byBlockBuilder_.clear();
- }
- if (byRangeBuilder_ != null) {
- byRangeBuilder_.clear();
- }
lookupCase_ = 0;
lookup_ = null;
return this;
@@ -453,37 +521,62 @@ public com.github.iotexproject.grpc.api.GetLogsRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetLogsRequest buildPartial() {
com.github.iotexproject.grpc.api.GetLogsRequest result = new com.github.iotexproject.grpc.api.GetLogsRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- buildPartialOneofs(result);
+ if (filterBuilder_ == null) {
+ result.filter_ = filter_;
+ } else {
+ result.filter_ = filterBuilder_.build();
+ }
+ if (lookupCase_ == 2) {
+ if (byBlockBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byBlockBuilder_.build();
+ }
+ }
+ if (lookupCase_ == 3) {
+ if (byRangeBuilder_ == null) {
+ result.lookup_ = lookup_;
+ } else {
+ result.lookup_ = byRangeBuilder_.build();
+ }
+ }
+ result.lookupCase_ = lookupCase_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetLogsRequest result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.filter_ = filterBuilder_ == null
- ? filter_
- : filterBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
}
-
- private void buildPartialOneofs(com.github.iotexproject.grpc.api.GetLogsRequest result) {
- result.lookupCase_ = lookupCase_;
- result.lookup_ = this.lookup_;
- if (lookupCase_ == 2 &&
- byBlockBuilder_ != null) {
- result.lookup_ = byBlockBuilder_.build();
- }
- if (lookupCase_ == 3 &&
- byRangeBuilder_ != null) {
- result.lookup_ = byRangeBuilder_.build();
- }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetLogsRequest) {
@@ -512,7 +605,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetLogsRequest other)
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -527,51 +620,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetLogsRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getFilterFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getByBlockFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 2;
- break;
- } // case 18
- case 26: {
- input.readMessage(
- getByRangeFieldBuilder().getBuilder(),
- extensionRegistry);
- lookupCase_ = 3;
- break;
- } // case 26
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetLogsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int lookupCase_ = 0;
@@ -589,17 +648,16 @@ public Builder clearLookup() {
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.api.LogsFilter filter_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.LogsFilter, com.github.iotexproject.grpc.api.LogsFilter.Builder, com.github.iotexproject.grpc.api.LogsFilterOrBuilder> filterBuilder_;
/**
* .iotexapi.LogsFilter filter = 1;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
- return ((bitField0_ & 0x00000001) != 0);
+ return filterBuilder_ != null || filter_ != null;
}
/**
* .iotexapi.LogsFilter filter = 1;
@@ -621,11 +679,11 @@ public Builder setFilter(com.github.iotexproject.grpc.api.LogsFilter value) {
throw new NullPointerException();
}
filter_ = value;
+ onChanged();
} else {
filterBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -635,11 +693,11 @@ public Builder setFilter(
com.github.iotexproject.grpc.api.LogsFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
+ onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -647,40 +705,38 @@ public Builder setFilter(
*/
public Builder mergeFilter(com.github.iotexproject.grpc.api.LogsFilter value) {
if (filterBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- filter_ != null &&
- filter_ != com.github.iotexproject.grpc.api.LogsFilter.getDefaultInstance()) {
- getFilterBuilder().mergeFrom(value);
+ if (filter_ != null) {
+ filter_ =
+ com.github.iotexproject.grpc.api.LogsFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
+ onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
- if (filter_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.LogsFilter filter = 1;
*/
public Builder clearFilter() {
- bitField0_ = (bitField0_ & ~0x00000001);
- filter_ = null;
- if (filterBuilder_ != null) {
- filterBuilder_.dispose();
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ onChanged();
+ } else {
+ filter_ = null;
filterBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.LogsFilter filter = 1;
*/
public com.github.iotexproject.grpc.api.LogsFilter.Builder getFilterBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getFilterFieldBuilder().getBuilder();
}
@@ -698,11 +754,11 @@ public com.github.iotexproject.grpc.api.LogsFilterOrBuilder getFilterOrBuilder()
/**
* .iotexapi.LogsFilter filter = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.LogsFilter, com.github.iotexproject.grpc.api.LogsFilter.Builder, com.github.iotexproject.grpc.api.LogsFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
- filterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.LogsFilter, com.github.iotexproject.grpc.api.LogsFilter.Builder, com.github.iotexproject.grpc.api.LogsFilterOrBuilder>(
getFilter(),
getParentForChildren(),
@@ -712,7 +768,7 @@ public com.github.iotexproject.grpc.api.LogsFilterOrBuilder getFilterOrBuilder()
return filterBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetLogsByBlock, com.github.iotexproject.grpc.api.GetLogsByBlock.Builder, com.github.iotexproject.grpc.api.GetLogsByBlockOrBuilder> byBlockBuilder_;
/**
* .iotexapi.GetLogsByBlock byBlock = 2;
@@ -786,9 +842,8 @@ public Builder mergeByBlock(com.github.iotexproject.grpc.api.GetLogsByBlock valu
} else {
if (lookupCase_ == 2) {
byBlockBuilder_.mergeFrom(value);
- } else {
- byBlockBuilder_.setMessage(value);
}
+ byBlockBuilder_.setMessage(value);
}
lookupCase_ = 2;
return this;
@@ -835,14 +890,14 @@ public com.github.iotexproject.grpc.api.GetLogsByBlockOrBuilder getByBlockOrBuil
/**
* .iotexapi.GetLogsByBlock byBlock = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetLogsByBlock, com.github.iotexproject.grpc.api.GetLogsByBlock.Builder, com.github.iotexproject.grpc.api.GetLogsByBlockOrBuilder>
getByBlockFieldBuilder() {
if (byBlockBuilder_ == null) {
if (!(lookupCase_ == 2)) {
lookup_ = com.github.iotexproject.grpc.api.GetLogsByBlock.getDefaultInstance();
}
- byBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetLogsByBlock, com.github.iotexproject.grpc.api.GetLogsByBlock.Builder, com.github.iotexproject.grpc.api.GetLogsByBlockOrBuilder>(
(com.github.iotexproject.grpc.api.GetLogsByBlock) lookup_,
getParentForChildren(),
@@ -850,11 +905,11 @@ public com.github.iotexproject.grpc.api.GetLogsByBlockOrBuilder getByBlockOrBuil
lookup_ = null;
}
lookupCase_ = 2;
- onChanged();
+ onChanged();;
return byBlockBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetLogsByRange, com.github.iotexproject.grpc.api.GetLogsByRange.Builder, com.github.iotexproject.grpc.api.GetLogsByRangeOrBuilder> byRangeBuilder_;
/**
* .iotexapi.GetLogsByRange byRange = 3;
@@ -928,9 +983,8 @@ public Builder mergeByRange(com.github.iotexproject.grpc.api.GetLogsByRange valu
} else {
if (lookupCase_ == 3) {
byRangeBuilder_.mergeFrom(value);
- } else {
- byRangeBuilder_.setMessage(value);
}
+ byRangeBuilder_.setMessage(value);
}
lookupCase_ = 3;
return this;
@@ -977,14 +1031,14 @@ public com.github.iotexproject.grpc.api.GetLogsByRangeOrBuilder getByRangeOrBuil
/**
* .iotexapi.GetLogsByRange byRange = 3;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetLogsByRange, com.github.iotexproject.grpc.api.GetLogsByRange.Builder, com.github.iotexproject.grpc.api.GetLogsByRangeOrBuilder>
getByRangeFieldBuilder() {
if (byRangeBuilder_ == null) {
if (!(lookupCase_ == 3)) {
lookup_ = com.github.iotexproject.grpc.api.GetLogsByRange.getDefaultInstance();
}
- byRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ byRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.GetLogsByRange, com.github.iotexproject.grpc.api.GetLogsByRange.Builder, com.github.iotexproject.grpc.api.GetLogsByRangeOrBuilder>(
(com.github.iotexproject.grpc.api.GetLogsByRange) lookup_,
getParentForChildren(),
@@ -992,9 +1046,21 @@ public com.github.iotexproject.grpc.api.GetLogsByRangeOrBuilder getByRangeOrBuil
lookup_ = null;
}
lookupCase_ = 3;
- onChanged();
+ onChanged();;
return byRangeBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetLogsRequest)
}
@@ -1016,18 +1082,7 @@ public GetLogsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetLogsRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequestOrBuilder.java
index df7fcc1..e55be42 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -54,5 +52,5 @@ public interface GetLogsRequestOrBuilder extends
*/
com.github.iotexproject.grpc.api.GetLogsByRangeOrBuilder getByRangeOrBuilder();
- com.github.iotexproject.grpc.api.GetLogsRequest.LookupCase getLookupCase();
+ public com.github.iotexproject.grpc.api.GetLogsRequest.LookupCase getLookupCase();
}
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponse.java
index f28d27a..7d79e20 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,87 @@
* Protobuf type {@code iotexapi.GetLogsResponse}
*/
public final class GetLogsResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetLogsResponse)
GetLogsResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetLogsResponse.class.getName());
- }
// Use GetLogsResponse.newBuilder() to construct.
- private GetLogsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLogsResponse() {
logs_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetLogsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetLogsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ logs_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ logs_.add(
+ input.readMessage(com.github.iotexproject.grpc.types.Log.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ logs_ = java.util.Collections.unmodifiableList(logs_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +95,6 @@ private GetLogsResponse() {
}
public static final int LOGS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
private java.util.List logs_;
/**
* repeated .iotextypes.Log logs = 1;
@@ -101,7 +151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < logs_.size(); i++) {
output.writeMessage(1, logs_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -114,7 +164,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, logs_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -131,7 +181,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getLogsList()
.equals(other.getLogsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -146,7 +196,7 @@ public int hashCode() {
hash = (37 * hash) + LOGS_FIELD_NUMBER;
hash = (53 * hash) + getLogsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -185,41 +235,39 @@ public static com.github.iotexproject.grpc.api.GetLogsResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetLogsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetLogsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetLogsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetLogsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetLogsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -239,7 +287,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -247,7 +295,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetLogsResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetLogsResponse)
com.github.iotexproject.grpc.api.GetLogsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -256,7 +304,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,25 +313,29 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetLogsResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getLogsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (logsBuilder_ == null) {
logs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- logs_ = null;
logsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -310,13 +362,7 @@ public com.github.iotexproject.grpc.api.GetLogsResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetLogsResponse buildPartial() {
com.github.iotexproject.grpc.api.GetLogsResponse result = new com.github.iotexproject.grpc.api.GetLogsResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetLogsResponse result) {
+ int from_bitField0_ = bitField0_;
if (logsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
logs_ = java.util.Collections.unmodifiableList(logs_);
@@ -326,12 +372,42 @@ private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetLogs
} else {
result.logs_ = logsBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetLogsResponse result) {
- int from_bitField0_ = bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetLogsResponse) {
@@ -363,14 +439,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetLogsResponse other)
logs_ = other.logs_;
bitField0_ = (bitField0_ & ~0x00000001);
logsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogsFieldBuilder() : null;
} else {
logsBuilder_.addAllMessages(other.logs_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -385,43 +461,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetLogsResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.github.iotexproject.grpc.types.Log m =
- input.readMessage(
- com.github.iotexproject.grpc.types.Log.parser(),
- extensionRegistry);
- if (logsBuilder_ == null) {
- ensureLogsIsMutable();
- logs_.add(m);
- } else {
- logsBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetLogsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -435,7 +485,7 @@ private void ensureLogsIsMutable() {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.Log, com.github.iotexproject.grpc.types.Log.Builder, com.github.iotexproject.grpc.types.LogOrBuilder> logsBuilder_;
/**
@@ -651,11 +701,11 @@ public com.github.iotexproject.grpc.types.Log.Builder addLogsBuilder(
getLogsBuilderList() {
return getLogsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.Log, com.github.iotexproject.grpc.types.Log.Builder, com.github.iotexproject.grpc.types.LogOrBuilder>
getLogsFieldBuilder() {
if (logsBuilder_ == null) {
- logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.Log, com.github.iotexproject.grpc.types.Log.Builder, com.github.iotexproject.grpc.types.LogOrBuilder>(
logs_,
((bitField0_ & 0x00000001) != 0),
@@ -665,6 +715,18 @@ public com.github.iotexproject.grpc.types.Log.Builder addLogsBuilder(
}
return logsBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetLogsResponse)
}
@@ -686,18 +748,7 @@ public GetLogsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetLogsResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponseOrBuilder.java
index 12acde6..2bb90ea 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetLogsResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequest.java
index f95da6b..9fd6ca7 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,93 @@
* Protobuf type {@code iotexapi.GetRawBlocksRequest}
*/
public final class GetRawBlocksRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetRawBlocksRequest)
GetRawBlocksRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetRawBlocksRequest.class.getName());
- }
// Use GetRawBlocksRequest.newBuilder() to construct.
- private GetRawBlocksRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetRawBlocksRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRawBlocksRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetRawBlocksRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetRawBlocksRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ startHeight_ = input.readUInt64();
+ break;
+ }
+ case 16: {
+
+ count_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ withReceipts_ = input.readBool();
+ break;
+ }
+ case 32: {
+
+ withTransactionLogs_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetRawBlocksRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetRawBlocksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +101,7 @@ private GetRawBlocksRequest() {
}
public static final int STARTHEIGHT_FIELD_NUMBER = 1;
- private long startHeight_ = 0L;
+ private long startHeight_;
/**
* uint64 startHeight = 1;
* @return The startHeight.
@@ -54,7 +112,7 @@ public long getStartHeight() {
}
public static final int COUNT_FIELD_NUMBER = 2;
- private long count_ = 0L;
+ private long count_;
/**
* uint64 count = 2;
* @return The count.
@@ -65,7 +123,7 @@ public long getCount() {
}
public static final int WITHRECEIPTS_FIELD_NUMBER = 3;
- private boolean withReceipts_ = false;
+ private boolean withReceipts_;
/**
* bool withReceipts = 3;
* @return The withReceipts.
@@ -76,7 +134,7 @@ public boolean getWithReceipts() {
}
public static final int WITHTRANSACTIONLOGS_FIELD_NUMBER = 4;
- private boolean withTransactionLogs_ = false;
+ private boolean withTransactionLogs_;
/**
* bool withTransactionLogs = 4;
* @return The withTransactionLogs.
@@ -112,7 +170,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (withTransactionLogs_ != false) {
output.writeBool(4, withTransactionLogs_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -137,7 +195,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, withTransactionLogs_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -160,7 +218,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getWithReceipts()) return false;
if (getWithTransactionLogs()
!= other.getWithTransactionLogs()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -183,7 +241,7 @@ public int hashCode() {
hash = (37 * hash) + WITHTRANSACTIONLOGS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getWithTransactionLogs());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -222,41 +280,39 @@ public static com.github.iotexproject.grpc.api.GetRawBlocksRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetRawBlocksRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetRawBlocksRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetRawBlocksRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetRawBlocksRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetRawBlocksRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetRawBlocksRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -276,7 +332,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -284,7 +340,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetRawBlocksRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetRawBlocksRequest)
com.github.iotexproject.grpc.api.GetRawBlocksRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -293,7 +349,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetRawBlocksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -302,22 +358,30 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetRawBlocksRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
startHeight_ = 0L;
+
count_ = 0L;
+
withReceipts_ = false;
+
withTransactionLogs_ = false;
+
return this;
}
@@ -344,27 +408,46 @@ public com.github.iotexproject.grpc.api.GetRawBlocksRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetRawBlocksRequest buildPartial() {
com.github.iotexproject.grpc.api.GetRawBlocksRequest result = new com.github.iotexproject.grpc.api.GetRawBlocksRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.startHeight_ = startHeight_;
+ result.count_ = count_;
+ result.withReceipts_ = withReceipts_;
+ result.withTransactionLogs_ = withTransactionLogs_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetRawBlocksRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.startHeight_ = startHeight_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.count_ = count_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.withReceipts_ = withReceipts_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.withTransactionLogs_ = withTransactionLogs_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetRawBlocksRequest) {
@@ -389,7 +472,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetRawBlocksRequest ot
if (other.getWithTransactionLogs() != false) {
setWithTransactionLogs(other.getWithTransactionLogs());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -404,53 +487,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetRawBlocksRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- startHeight_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- count_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24: {
- withReceipts_ = input.readBool();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- case 32: {
- withTransactionLogs_ = input.readBool();
- bitField0_ |= 0x00000008;
- break;
- } // case 32
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetRawBlocksRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long startHeight_ ;
/**
@@ -467,9 +516,8 @@ public long getStartHeight() {
* @return This builder for chaining.
*/
public Builder setStartHeight(long value) {
-
+
startHeight_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -478,7 +526,7 @@ public Builder setStartHeight(long value) {
* @return This builder for chaining.
*/
public Builder clearStartHeight() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
startHeight_ = 0L;
onChanged();
return this;
@@ -499,9 +547,8 @@ public long getCount() {
* @return This builder for chaining.
*/
public Builder setCount(long value) {
-
+
count_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -510,7 +557,7 @@ public Builder setCount(long value) {
* @return This builder for chaining.
*/
public Builder clearCount() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
count_ = 0L;
onChanged();
return this;
@@ -531,9 +578,8 @@ public boolean getWithReceipts() {
* @return This builder for chaining.
*/
public Builder setWithReceipts(boolean value) {
-
+
withReceipts_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -542,7 +588,7 @@ public Builder setWithReceipts(boolean value) {
* @return This builder for chaining.
*/
public Builder clearWithReceipts() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
withReceipts_ = false;
onChanged();
return this;
@@ -563,9 +609,8 @@ public boolean getWithTransactionLogs() {
* @return This builder for chaining.
*/
public Builder setWithTransactionLogs(boolean value) {
-
+
withTransactionLogs_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -574,11 +619,23 @@ public Builder setWithTransactionLogs(boolean value) {
* @return This builder for chaining.
*/
public Builder clearWithTransactionLogs() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
withTransactionLogs_ = false;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetRawBlocksRequest)
}
@@ -600,18 +657,7 @@ public GetRawBlocksRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetRawBlocksRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequestOrBuilder.java
index 983930f..6641300 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponse.java
index a974853..6d2a63a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,87 @@
* Protobuf type {@code iotexapi.GetRawBlocksResponse}
*/
public final class GetRawBlocksResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetRawBlocksResponse)
GetRawBlocksResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetRawBlocksResponse.class.getName());
- }
// Use GetRawBlocksResponse.newBuilder() to construct.
- private GetRawBlocksResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetRawBlocksResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRawBlocksResponse() {
blocks_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetRawBlocksResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetRawBlocksResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ blocks_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ blocks_.add(
+ input.readMessage(com.github.iotexproject.grpc.api.BlockInfo.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ blocks_ = java.util.Collections.unmodifiableList(blocks_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetRawBlocksResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetRawBlocksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +95,6 @@ private GetRawBlocksResponse() {
}
public static final int BLOCKS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
private java.util.List blocks_;
/**
* repeated .iotexapi.BlockInfo blocks = 1;
@@ -101,7 +151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < blocks_.size(); i++) {
output.writeMessage(1, blocks_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -114,7 +164,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, blocks_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -131,7 +181,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlocksList()
.equals(other.getBlocksList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -146,7 +196,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKS_FIELD_NUMBER;
hash = (53 * hash) + getBlocksList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -185,41 +235,39 @@ public static com.github.iotexproject.grpc.api.GetRawBlocksResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetRawBlocksResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetRawBlocksResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetRawBlocksResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetRawBlocksResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetRawBlocksResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetRawBlocksResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -239,7 +287,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -247,7 +295,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetRawBlocksResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetRawBlocksResponse)
com.github.iotexproject.grpc.api.GetRawBlocksResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -256,7 +304,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetRawBlocksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,25 +313,29 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetRawBlocksResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getBlocksFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (blocksBuilder_ == null) {
blocks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- blocks_ = null;
blocksBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -310,13 +362,7 @@ public com.github.iotexproject.grpc.api.GetRawBlocksResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetRawBlocksResponse buildPartial() {
com.github.iotexproject.grpc.api.GetRawBlocksResponse result = new com.github.iotexproject.grpc.api.GetRawBlocksResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetRawBlocksResponse result) {
+ int from_bitField0_ = bitField0_;
if (blocksBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
blocks_ = java.util.Collections.unmodifiableList(blocks_);
@@ -326,12 +372,42 @@ private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.GetRawB
} else {
result.blocks_ = blocksBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetRawBlocksResponse result) {
- int from_bitField0_ = bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetRawBlocksResponse) {
@@ -363,14 +439,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetRawBlocksResponse o
blocks_ = other.blocks_;
bitField0_ = (bitField0_ & ~0x00000001);
blocksBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlocksFieldBuilder() : null;
} else {
blocksBuilder_.addAllMessages(other.blocks_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -385,43 +461,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetRawBlocksResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.github.iotexproject.grpc.api.BlockInfo m =
- input.readMessage(
- com.github.iotexproject.grpc.api.BlockInfo.parser(),
- extensionRegistry);
- if (blocksBuilder_ == null) {
- ensureBlocksIsMutable();
- blocks_.add(m);
- } else {
- blocksBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetRawBlocksResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -435,7 +485,7 @@ private void ensureBlocksIsMutable() {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockInfo, com.github.iotexproject.grpc.api.BlockInfo.Builder, com.github.iotexproject.grpc.api.BlockInfoOrBuilder> blocksBuilder_;
/**
@@ -651,11 +701,11 @@ public com.github.iotexproject.grpc.api.BlockInfo.Builder addBlocksBuilder(
getBlocksBuilderList() {
return getBlocksFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockInfo, com.github.iotexproject.grpc.api.BlockInfo.Builder, com.github.iotexproject.grpc.api.BlockInfoOrBuilder>
getBlocksFieldBuilder() {
if (blocksBuilder_ == null) {
- blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockInfo, com.github.iotexproject.grpc.api.BlockInfo.Builder, com.github.iotexproject.grpc.api.BlockInfoOrBuilder>(
blocks_,
((bitField0_ & 0x00000001) != 0),
@@ -665,6 +715,18 @@ public com.github.iotexproject.grpc.api.BlockInfo.Builder addBlocksBuilder(
}
return blocksBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetRawBlocksResponse)
}
@@ -686,18 +748,7 @@ public GetRawBlocksResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetRawBlocksResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponseOrBuilder.java
index 1c48b14..01be83e 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetRawBlocksResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequest.java
index f8d2993..5114873 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.GetReceiptByActionRequest}
*/
public final class GetReceiptByActionRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetReceiptByActionRequest)
GetReceiptByActionRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetReceiptByActionRequest.class.getName());
- }
// Use GetReceiptByActionRequest.newBuilder() to construct.
- private GetReceiptByActionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetReceiptByActionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetReceiptByActionRequest() {
actionHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetReceiptByActionRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetReceiptByActionRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ actionHash_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetReceiptByActionRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetReceiptByActionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +88,7 @@ private GetReceiptByActionRequest() {
}
public static final int ACTIONHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object actionHash_ = "";
+ private volatile java.lang.Object actionHash_;
/**
* string actionHash = 1;
* @return The actionHash.
@@ -96,10 +139,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -108,10 +151,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -128,7 +171,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionHash()
.equals(other.getActionHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -141,7 +184,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACTIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getActionHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -180,41 +223,39 @@ public static com.github.iotexproject.grpc.api.GetReceiptByActionRequest parseFr
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetReceiptByActionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetReceiptByActionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -234,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -242,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetReceiptByActionRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetReceiptByActionRequest)
com.github.iotexproject.grpc.api.GetReceiptByActionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -251,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetReceiptByActionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -260,19 +301,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetReceiptByActionRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
actionHash_ = "";
+
return this;
}
@@ -299,18 +345,43 @@ public com.github.iotexproject.grpc.api.GetReceiptByActionRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetReceiptByActionRequest buildPartial() {
com.github.iotexproject.grpc.api.GetReceiptByActionRequest result = new com.github.iotexproject.grpc.api.GetReceiptByActionRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.actionHash_ = actionHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetReceiptByActionRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionHash_ = actionHash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetReceiptByActionRequest) {
@@ -325,10 +396,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetReceiptByActionRequ
if (other == com.github.iotexproject.grpc.api.GetReceiptByActionRequest.getDefaultInstance()) return this;
if (!other.getActionHash().isEmpty()) {
actionHash_ = other.actionHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -343,38 +413,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetReceiptByActionRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- actionHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetReceiptByActionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object actionHash_ = "";
/**
@@ -417,9 +468,11 @@ public java.lang.String getActionHash() {
*/
public Builder setActionHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -428,8 +481,8 @@ public Builder setActionHash(
* @return This builder for chaining.
*/
public Builder clearActionHash() {
+
actionHash_ = getDefaultInstance().getActionHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -440,13 +493,27 @@ public Builder clearActionHash() {
*/
public Builder setActionHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetReceiptByActionRequest)
}
@@ -468,18 +535,7 @@ public GetReceiptByActionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetReceiptByActionRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequestOrBuilder.java
index 620aa3c..2cbbd21 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponse.java
index 0134ba3..f728008 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,92 @@
* Protobuf type {@code iotexapi.GetReceiptByActionResponse}
*/
public final class GetReceiptByActionResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetReceiptByActionResponse)
GetReceiptByActionResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetReceiptByActionResponse.class.getName());
- }
// Use GetReceiptByActionResponse.newBuilder() to construct.
- private GetReceiptByActionResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetReceiptByActionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetReceiptByActionResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetReceiptByActionResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetReceiptByActionResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.ReceiptInfo.Builder subBuilder = null;
+ if (receiptInfo_ != null) {
+ subBuilder = receiptInfo_.toBuilder();
+ }
+ receiptInfo_ = input.readMessage(com.github.iotexproject.grpc.api.ReceiptInfo.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(receiptInfo_);
+ receiptInfo_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetReceiptByActionResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetReceiptByActionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetReceiptByActionResponse.class, com.github.iotexproject.grpc.api.GetReceiptByActionResponse.Builder.class);
}
- private int bitField0_;
public static final int RECEIPTINFO_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.api.ReceiptInfo receiptInfo_;
/**
@@ -51,7 +101,7 @@ private GetReceiptByActionResponse() {
*/
@java.lang.Override
public boolean hasReceiptInfo() {
- return ((bitField0_ & 0x00000001) != 0);
+ return receiptInfo_ != null;
}
/**
* .iotexapi.ReceiptInfo receiptInfo = 1;
@@ -66,7 +116,7 @@ public com.github.iotexproject.grpc.api.ReceiptInfo getReceiptInfo() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.ReceiptInfoOrBuilder getReceiptInfoOrBuilder() {
- return receiptInfo_ == null ? com.github.iotexproject.grpc.api.ReceiptInfo.getDefaultInstance() : receiptInfo_;
+ return getReceiptInfo();
}
private byte memoizedIsInitialized = -1;
@@ -83,10 +133,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (receiptInfo_ != null) {
output.writeMessage(1, getReceiptInfo());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -95,11 +145,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (receiptInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getReceiptInfo());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -119,7 +169,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getReceiptInfo()
.equals(other.getReceiptInfo())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -134,7 +184,7 @@ public int hashCode() {
hash = (37 * hash) + RECEIPTINFO_FIELD_NUMBER;
hash = (53 * hash) + getReceiptInfo().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -173,41 +223,39 @@ public static com.github.iotexproject.grpc.api.GetReceiptByActionResponse parseF
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetReceiptByActionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetReceiptByActionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetReceiptByActionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -227,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -235,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetReceiptByActionResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetReceiptByActionResponse)
com.github.iotexproject.grpc.api.GetReceiptByActionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -244,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetReceiptByActionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -257,23 +305,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getReceiptInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- receiptInfo_ = null;
- if (receiptInfoBuilder_ != null) {
- receiptInfoBuilder_.dispose();
+ if (receiptInfoBuilder_ == null) {
+ receiptInfo_ = null;
+ } else {
+ receiptInfo_ = null;
receiptInfoBuilder_ = null;
}
return this;
@@ -302,23 +349,47 @@ public com.github.iotexproject.grpc.api.GetReceiptByActionResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetReceiptByActionResponse buildPartial() {
com.github.iotexproject.grpc.api.GetReceiptByActionResponse result = new com.github.iotexproject.grpc.api.GetReceiptByActionResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (receiptInfoBuilder_ == null) {
+ result.receiptInfo_ = receiptInfo_;
+ } else {
+ result.receiptInfo_ = receiptInfoBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetReceiptByActionResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.receiptInfo_ = receiptInfoBuilder_ == null
- ? receiptInfo_
- : receiptInfoBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetReceiptByActionResponse) {
@@ -334,7 +405,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetReceiptByActionResp
if (other.hasReceiptInfo()) {
mergeReceiptInfo(other.getReceiptInfo());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -349,50 +420,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetReceiptByActionResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getReceiptInfoFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetReceiptByActionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.api.ReceiptInfo receiptInfo_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReceiptInfo, com.github.iotexproject.grpc.api.ReceiptInfo.Builder, com.github.iotexproject.grpc.api.ReceiptInfoOrBuilder> receiptInfoBuilder_;
/**
* .iotexapi.ReceiptInfo receiptInfo = 1;
* @return Whether the receiptInfo field is set.
*/
public boolean hasReceiptInfo() {
- return ((bitField0_ & 0x00000001) != 0);
+ return receiptInfoBuilder_ != null || receiptInfo_ != null;
}
/**
* .iotexapi.ReceiptInfo receiptInfo = 1;
@@ -414,11 +464,11 @@ public Builder setReceiptInfo(com.github.iotexproject.grpc.api.ReceiptInfo value
throw new NullPointerException();
}
receiptInfo_ = value;
+ onChanged();
} else {
receiptInfoBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -428,11 +478,11 @@ public Builder setReceiptInfo(
com.github.iotexproject.grpc.api.ReceiptInfo.Builder builderForValue) {
if (receiptInfoBuilder_ == null) {
receiptInfo_ = builderForValue.build();
+ onChanged();
} else {
receiptInfoBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -440,40 +490,38 @@ public Builder setReceiptInfo(
*/
public Builder mergeReceiptInfo(com.github.iotexproject.grpc.api.ReceiptInfo value) {
if (receiptInfoBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- receiptInfo_ != null &&
- receiptInfo_ != com.github.iotexproject.grpc.api.ReceiptInfo.getDefaultInstance()) {
- getReceiptInfoBuilder().mergeFrom(value);
+ if (receiptInfo_ != null) {
+ receiptInfo_ =
+ com.github.iotexproject.grpc.api.ReceiptInfo.newBuilder(receiptInfo_).mergeFrom(value).buildPartial();
} else {
receiptInfo_ = value;
}
+ onChanged();
} else {
receiptInfoBuilder_.mergeFrom(value);
}
- if (receiptInfo_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.ReceiptInfo receiptInfo = 1;
*/
public Builder clearReceiptInfo() {
- bitField0_ = (bitField0_ & ~0x00000001);
- receiptInfo_ = null;
- if (receiptInfoBuilder_ != null) {
- receiptInfoBuilder_.dispose();
+ if (receiptInfoBuilder_ == null) {
+ receiptInfo_ = null;
+ onChanged();
+ } else {
+ receiptInfo_ = null;
receiptInfoBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.ReceiptInfo receiptInfo = 1;
*/
public com.github.iotexproject.grpc.api.ReceiptInfo.Builder getReceiptInfoBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getReceiptInfoFieldBuilder().getBuilder();
}
@@ -491,11 +539,11 @@ public com.github.iotexproject.grpc.api.ReceiptInfoOrBuilder getReceiptInfoOrBui
/**
* .iotexapi.ReceiptInfo receiptInfo = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReceiptInfo, com.github.iotexproject.grpc.api.ReceiptInfo.Builder, com.github.iotexproject.grpc.api.ReceiptInfoOrBuilder>
getReceiptInfoFieldBuilder() {
if (receiptInfoBuilder_ == null) {
- receiptInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ receiptInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReceiptInfo, com.github.iotexproject.grpc.api.ReceiptInfo.Builder, com.github.iotexproject.grpc.api.ReceiptInfoOrBuilder>(
getReceiptInfo(),
getParentForChildren(),
@@ -504,6 +552,18 @@ public com.github.iotexproject.grpc.api.ReceiptInfoOrBuilder getReceiptInfoOrBui
}
return receiptInfoBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetReceiptByActionResponse)
}
@@ -525,18 +585,7 @@ public GetReceiptByActionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetReceiptByActionResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponseOrBuilder.java
index 4b7ce0e..8c9d02b 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetReceiptByActionResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequest.java
index c046699..8c77990 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,73 @@
* Protobuf type {@code iotexapi.GetServerMetaRequest}
*/
public final class GetServerMetaRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetServerMetaRequest)
GetServerMetaRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetServerMetaRequest.class.getName());
- }
// Use GetServerMetaRequest.newBuilder() to construct.
- private GetServerMetaRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetServerMetaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetServerMetaRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetServerMetaRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetServerMetaRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetServerMetaRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetServerMetaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -56,7 +94,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -65,7 +103,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -80,7 +118,7 @@ public boolean equals(final java.lang.Object obj) {
}
com.github.iotexproject.grpc.api.GetServerMetaRequest other = (com.github.iotexproject.grpc.api.GetServerMetaRequest) obj;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -91,7 +129,7 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -130,41 +168,39 @@ public static com.github.iotexproject.grpc.api.GetServerMetaRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.GetServerMetaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetServerMetaRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetServerMetaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetServerMetaRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetServerMetaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetServerMetaRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -184,7 +220,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -192,7 +228,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetServerMetaRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetServerMetaRequest)
com.github.iotexproject.grpc.api.GetServerMetaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -201,7 +237,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetServerMetaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -210,13 +246,18 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetServerMetaRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
@@ -251,6 +292,38 @@ public com.github.iotexproject.grpc.api.GetServerMetaRequest buildPartial() {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetServerMetaRequest) {
@@ -263,7 +336,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.github.iotexproject.grpc.api.GetServerMetaRequest other) {
if (other == com.github.iotexproject.grpc.api.GetServerMetaRequest.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -278,32 +351,31 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetServerMetaRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetServerMetaRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetServerMetaRequest)
}
@@ -325,18 +397,7 @@ public GetServerMetaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetServerMetaRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequestOrBuilder.java
index c36b710..ce33a05 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponse.java
index 22a00ae..3162790 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,92 @@
* Protobuf type {@code iotexapi.GetServerMetaResponse}
*/
public final class GetServerMetaResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetServerMetaResponse)
GetServerMetaResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetServerMetaResponse.class.getName());
- }
// Use GetServerMetaResponse.newBuilder() to construct.
- private GetServerMetaResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetServerMetaResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetServerMetaResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetServerMetaResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetServerMetaResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.ServerMeta.Builder subBuilder = null;
+ if (serverMeta_ != null) {
+ subBuilder = serverMeta_.toBuilder();
+ }
+ serverMeta_ = input.readMessage(com.github.iotexproject.grpc.types.ServerMeta.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(serverMeta_);
+ serverMeta_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetServerMetaResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetServerMetaResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetServerMetaResponse.class, com.github.iotexproject.grpc.api.GetServerMetaResponse.Builder.class);
}
- private int bitField0_;
public static final int SERVERMETA_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.ServerMeta serverMeta_;
/**
@@ -51,7 +101,7 @@ private GetServerMetaResponse() {
*/
@java.lang.Override
public boolean hasServerMeta() {
- return ((bitField0_ & 0x00000001) != 0);
+ return serverMeta_ != null;
}
/**
* .iotextypes.ServerMeta serverMeta = 1;
@@ -66,7 +116,7 @@ public com.github.iotexproject.grpc.types.ServerMeta getServerMeta() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ServerMetaOrBuilder getServerMetaOrBuilder() {
- return serverMeta_ == null ? com.github.iotexproject.grpc.types.ServerMeta.getDefaultInstance() : serverMeta_;
+ return getServerMeta();
}
private byte memoizedIsInitialized = -1;
@@ -83,10 +133,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (serverMeta_ != null) {
output.writeMessage(1, getServerMeta());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -95,11 +145,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (serverMeta_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getServerMeta());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -119,7 +169,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getServerMeta()
.equals(other.getServerMeta())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -134,7 +184,7 @@ public int hashCode() {
hash = (37 * hash) + SERVERMETA_FIELD_NUMBER;
hash = (53 * hash) + getServerMeta().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -173,41 +223,39 @@ public static com.github.iotexproject.grpc.api.GetServerMetaResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.GetServerMetaResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetServerMetaResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetServerMetaResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetServerMetaResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetServerMetaResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetServerMetaResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -227,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -235,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetServerMetaResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetServerMetaResponse)
com.github.iotexproject.grpc.api.GetServerMetaResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -244,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetServerMetaResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -257,23 +305,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getServerMetaFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- serverMeta_ = null;
- if (serverMetaBuilder_ != null) {
- serverMetaBuilder_.dispose();
+ if (serverMetaBuilder_ == null) {
+ serverMeta_ = null;
+ } else {
+ serverMeta_ = null;
serverMetaBuilder_ = null;
}
return this;
@@ -302,23 +349,47 @@ public com.github.iotexproject.grpc.api.GetServerMetaResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.GetServerMetaResponse buildPartial() {
com.github.iotexproject.grpc.api.GetServerMetaResponse result = new com.github.iotexproject.grpc.api.GetServerMetaResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (serverMetaBuilder_ == null) {
+ result.serverMeta_ = serverMeta_;
+ } else {
+ result.serverMeta_ = serverMetaBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetServerMetaResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.serverMeta_ = serverMetaBuilder_ == null
- ? serverMeta_
- : serverMetaBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetServerMetaResponse) {
@@ -334,7 +405,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetServerMetaResponse
if (other.hasServerMeta()) {
mergeServerMeta(other.getServerMeta());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -349,50 +420,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetServerMetaResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getServerMetaFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetServerMetaResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.ServerMeta serverMeta_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ServerMeta, com.github.iotexproject.grpc.types.ServerMeta.Builder, com.github.iotexproject.grpc.types.ServerMetaOrBuilder> serverMetaBuilder_;
/**
* .iotextypes.ServerMeta serverMeta = 1;
* @return Whether the serverMeta field is set.
*/
public boolean hasServerMeta() {
- return ((bitField0_ & 0x00000001) != 0);
+ return serverMetaBuilder_ != null || serverMeta_ != null;
}
/**
* .iotextypes.ServerMeta serverMeta = 1;
@@ -414,11 +464,11 @@ public Builder setServerMeta(com.github.iotexproject.grpc.types.ServerMeta value
throw new NullPointerException();
}
serverMeta_ = value;
+ onChanged();
} else {
serverMetaBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -428,11 +478,11 @@ public Builder setServerMeta(
com.github.iotexproject.grpc.types.ServerMeta.Builder builderForValue) {
if (serverMetaBuilder_ == null) {
serverMeta_ = builderForValue.build();
+ onChanged();
} else {
serverMetaBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -440,40 +490,38 @@ public Builder setServerMeta(
*/
public Builder mergeServerMeta(com.github.iotexproject.grpc.types.ServerMeta value) {
if (serverMetaBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- serverMeta_ != null &&
- serverMeta_ != com.github.iotexproject.grpc.types.ServerMeta.getDefaultInstance()) {
- getServerMetaBuilder().mergeFrom(value);
+ if (serverMeta_ != null) {
+ serverMeta_ =
+ com.github.iotexproject.grpc.types.ServerMeta.newBuilder(serverMeta_).mergeFrom(value).buildPartial();
} else {
serverMeta_ = value;
}
+ onChanged();
} else {
serverMetaBuilder_.mergeFrom(value);
}
- if (serverMeta_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.ServerMeta serverMeta = 1;
*/
public Builder clearServerMeta() {
- bitField0_ = (bitField0_ & ~0x00000001);
- serverMeta_ = null;
- if (serverMetaBuilder_ != null) {
- serverMetaBuilder_.dispose();
+ if (serverMetaBuilder_ == null) {
+ serverMeta_ = null;
+ onChanged();
+ } else {
+ serverMeta_ = null;
serverMetaBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.ServerMeta serverMeta = 1;
*/
public com.github.iotexproject.grpc.types.ServerMeta.Builder getServerMetaBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getServerMetaFieldBuilder().getBuilder();
}
@@ -491,11 +539,11 @@ public com.github.iotexproject.grpc.types.ServerMetaOrBuilder getServerMetaOrBui
/**
* .iotextypes.ServerMeta serverMeta = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ServerMeta, com.github.iotexproject.grpc.types.ServerMeta.Builder, com.github.iotexproject.grpc.types.ServerMetaOrBuilder>
getServerMetaFieldBuilder() {
if (serverMetaBuilder_ == null) {
- serverMetaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ serverMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ServerMeta, com.github.iotexproject.grpc.types.ServerMeta.Builder, com.github.iotexproject.grpc.types.ServerMetaOrBuilder>(
getServerMeta(),
getParentForChildren(),
@@ -504,6 +552,18 @@ public com.github.iotexproject.grpc.types.ServerMetaOrBuilder getServerMetaOrBui
}
return serverMetaBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetServerMetaResponse)
}
@@ -525,18 +585,7 @@ public GetServerMetaResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetServerMetaResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponseOrBuilder.java
index 7047a74..fc4789a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetServerMetaResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequest.java
index 08ff168..547f8de 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.GetTransactionLogByActionHashRequest}
*/
public final class GetTransactionLogByActionHashRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetTransactionLogByActionHashRequest)
GetTransactionLogByActionHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetTransactionLogByActionHashRequest.class.getName());
- }
// Use GetTransactionLogByActionHashRequest.newBuilder() to construct.
- private GetTransactionLogByActionHashRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetTransactionLogByActionHashRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTransactionLogByActionHashRequest() {
actionHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetTransactionLogByActionHashRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetTransactionLogByActionHashRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ actionHash_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByActionHashRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByActionHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +88,7 @@ private GetTransactionLogByActionHashRequest() {
}
public static final int ACTIONHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object actionHash_ = "";
+ private volatile java.lang.Object actionHash_;
/**
* string actionHash = 1;
* @return The actionHash.
@@ -96,10 +139,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -108,10 +151,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -128,7 +171,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionHash()
.equals(other.getActionHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -141,7 +184,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACTIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getActionHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -180,41 +223,39 @@ public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequ
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -234,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -242,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetTransactionLogByActionHashRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetTransactionLogByActionHashRequest)
com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -251,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByActionHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -260,19 +301,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
actionHash_ = "";
+
return this;
}
@@ -299,18 +345,43 @@ public com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest bui
@java.lang.Override
public com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest buildPartial() {
com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest result = new com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.actionHash_ = actionHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionHash_ = actionHash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest) {
@@ -325,10 +396,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetTransactionLogByAct
if (other == com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest.getDefaultInstance()) return this;
if (!other.getActionHash().isEmpty()) {
actionHash_ = other.actionHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -343,38 +413,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- actionHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetTransactionLogByActionHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object actionHash_ = "";
/**
@@ -417,9 +468,11 @@ public java.lang.String getActionHash() {
*/
public Builder setActionHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -428,8 +481,8 @@ public Builder setActionHash(
* @return This builder for chaining.
*/
public Builder clearActionHash() {
+
actionHash_ = getDefaultInstance().getActionHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -440,13 +493,27 @@ public Builder clearActionHash() {
*/
public Builder setActionHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetTransactionLogByActionHashRequest)
}
@@ -468,18 +535,7 @@ public GetTransactionLogByActionHashRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetTransactionLogByActionHashRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequestOrBuilder.java
index 0d712a9..5d50b32 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponse.java
index b31306b..565c0f4 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,92 @@
* Protobuf type {@code iotexapi.GetTransactionLogByActionHashResponse}
*/
public final class GetTransactionLogByActionHashResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetTransactionLogByActionHashResponse)
GetTransactionLogByActionHashResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetTransactionLogByActionHashResponse.class.getName());
- }
// Use GetTransactionLogByActionHashResponse.newBuilder() to construct.
- private GetTransactionLogByActionHashResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetTransactionLogByActionHashResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTransactionLogByActionHashResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetTransactionLogByActionHashResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetTransactionLogByActionHashResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.TransactionLog.Builder subBuilder = null;
+ if (transactionLog_ != null) {
+ subBuilder = transactionLog_.toBuilder();
+ }
+ transactionLog_ = input.readMessage(com.github.iotexproject.grpc.types.TransactionLog.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(transactionLog_);
+ transactionLog_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByActionHashResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByActionHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse.class, com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse.Builder.class);
}
- private int bitField0_;
public static final int TRANSACTIONLOG_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.TransactionLog transactionLog_;
/**
@@ -51,7 +101,7 @@ private GetTransactionLogByActionHashResponse() {
*/
@java.lang.Override
public boolean hasTransactionLog() {
- return ((bitField0_ & 0x00000001) != 0);
+ return transactionLog_ != null;
}
/**
* .iotextypes.TransactionLog transactionLog = 1;
@@ -66,7 +116,7 @@ public com.github.iotexproject.grpc.types.TransactionLog getTransactionLog() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.TransactionLogOrBuilder getTransactionLogOrBuilder() {
- return transactionLog_ == null ? com.github.iotexproject.grpc.types.TransactionLog.getDefaultInstance() : transactionLog_;
+ return getTransactionLog();
}
private byte memoizedIsInitialized = -1;
@@ -83,10 +133,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (transactionLog_ != null) {
output.writeMessage(1, getTransactionLog());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -95,11 +145,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (transactionLog_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTransactionLog());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -119,7 +169,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTransactionLog()
.equals(other.getTransactionLog())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -134,7 +184,7 @@ public int hashCode() {
hash = (37 * hash) + TRANSACTIONLOG_FIELD_NUMBER;
hash = (53 * hash) + getTransactionLog().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -173,41 +223,39 @@ public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResp
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -227,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -235,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetTransactionLogByActionHashResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetTransactionLogByActionHashResponse)
com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -244,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByActionHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -257,23 +305,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getTransactionLogFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- transactionLog_ = null;
- if (transactionLogBuilder_ != null) {
- transactionLogBuilder_.dispose();
+ if (transactionLogBuilder_ == null) {
+ transactionLog_ = null;
+ } else {
+ transactionLog_ = null;
transactionLogBuilder_ = null;
}
return this;
@@ -302,23 +349,47 @@ public com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse bu
@java.lang.Override
public com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse buildPartial() {
com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse result = new com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (transactionLogBuilder_ == null) {
+ result.transactionLog_ = transactionLog_;
+ } else {
+ result.transactionLog_ = transactionLogBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.transactionLog_ = transactionLogBuilder_ == null
- ? transactionLog_
- : transactionLogBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse) {
@@ -334,7 +405,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetTransactionLogByAct
if (other.hasTransactionLog()) {
mergeTransactionLog(other.getTransactionLog());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -349,50 +420,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getTransactionLogFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetTransactionLogByActionHashResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.TransactionLog transactionLog_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionLog, com.github.iotexproject.grpc.types.TransactionLog.Builder, com.github.iotexproject.grpc.types.TransactionLogOrBuilder> transactionLogBuilder_;
/**
* .iotextypes.TransactionLog transactionLog = 1;
* @return Whether the transactionLog field is set.
*/
public boolean hasTransactionLog() {
- return ((bitField0_ & 0x00000001) != 0);
+ return transactionLogBuilder_ != null || transactionLog_ != null;
}
/**
* .iotextypes.TransactionLog transactionLog = 1;
@@ -414,11 +464,11 @@ public Builder setTransactionLog(com.github.iotexproject.grpc.types.TransactionL
throw new NullPointerException();
}
transactionLog_ = value;
+ onChanged();
} else {
transactionLogBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -428,11 +478,11 @@ public Builder setTransactionLog(
com.github.iotexproject.grpc.types.TransactionLog.Builder builderForValue) {
if (transactionLogBuilder_ == null) {
transactionLog_ = builderForValue.build();
+ onChanged();
} else {
transactionLogBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -440,40 +490,38 @@ public Builder setTransactionLog(
*/
public Builder mergeTransactionLog(com.github.iotexproject.grpc.types.TransactionLog value) {
if (transactionLogBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- transactionLog_ != null &&
- transactionLog_ != com.github.iotexproject.grpc.types.TransactionLog.getDefaultInstance()) {
- getTransactionLogBuilder().mergeFrom(value);
+ if (transactionLog_ != null) {
+ transactionLog_ =
+ com.github.iotexproject.grpc.types.TransactionLog.newBuilder(transactionLog_).mergeFrom(value).buildPartial();
} else {
transactionLog_ = value;
}
+ onChanged();
} else {
transactionLogBuilder_.mergeFrom(value);
}
- if (transactionLog_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.TransactionLog transactionLog = 1;
*/
public Builder clearTransactionLog() {
- bitField0_ = (bitField0_ & ~0x00000001);
- transactionLog_ = null;
- if (transactionLogBuilder_ != null) {
- transactionLogBuilder_.dispose();
+ if (transactionLogBuilder_ == null) {
+ transactionLog_ = null;
+ onChanged();
+ } else {
+ transactionLog_ = null;
transactionLogBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.TransactionLog transactionLog = 1;
*/
public com.github.iotexproject.grpc.types.TransactionLog.Builder getTransactionLogBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getTransactionLogFieldBuilder().getBuilder();
}
@@ -491,11 +539,11 @@ public com.github.iotexproject.grpc.types.TransactionLogOrBuilder getTransaction
/**
* .iotextypes.TransactionLog transactionLog = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionLog, com.github.iotexproject.grpc.types.TransactionLog.Builder, com.github.iotexproject.grpc.types.TransactionLogOrBuilder>
getTransactionLogFieldBuilder() {
if (transactionLogBuilder_ == null) {
- transactionLogBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ transactionLogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionLog, com.github.iotexproject.grpc.types.TransactionLog.Builder, com.github.iotexproject.grpc.types.TransactionLogOrBuilder>(
getTransactionLog(),
getParentForChildren(),
@@ -504,6 +552,18 @@ public com.github.iotexproject.grpc.types.TransactionLogOrBuilder getTransaction
}
return transactionLogBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetTransactionLogByActionHashResponse)
}
@@ -525,18 +585,7 @@ public GetTransactionLogByActionHashResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetTransactionLogByActionHashResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponseOrBuilder.java
index bc8d167..66a3640 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByActionHashResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequest.java
index 7c38a3d..4b7d9d3 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,78 @@
* Protobuf type {@code iotexapi.GetTransactionLogByBlockHeightRequest}
*/
public final class GetTransactionLogByBlockHeightRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetTransactionLogByBlockHeightRequest)
GetTransactionLogByBlockHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetTransactionLogByBlockHeightRequest.class.getName());
- }
// Use GetTransactionLogByBlockHeightRequest.newBuilder() to construct.
- private GetTransactionLogByBlockHeightRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetTransactionLogByBlockHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTransactionLogByBlockHeightRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetTransactionLogByBlockHeightRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetTransactionLogByBlockHeightRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ blockHeight_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByBlockHeightRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +86,7 @@ private GetTransactionLogByBlockHeightRequest() {
}
public static final int BLOCKHEIGHT_FIELD_NUMBER = 1;
- private long blockHeight_ = 0L;
+ private long blockHeight_;
/**
* uint64 blockHeight = 1;
* @return The blockHeight.
@@ -70,7 +113,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (blockHeight_ != 0L) {
output.writeUInt64(1, blockHeight_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -83,7 +126,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, blockHeight_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -100,7 +143,7 @@ public boolean equals(final java.lang.Object obj) {
if (getBlockHeight()
!= other.getBlockHeight()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKHEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightReq
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetTransactionLogByBlockHeightRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetTransactionLogByBlockHeightRequest)
com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
blockHeight_ = 0L;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest bu
@java.lang.Override
public com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest buildPartial() {
com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest result = new com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.blockHeight_ = blockHeight_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.blockHeight_ = blockHeight_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetTransactionLogByBlo
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- blockHeight_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long blockHeight_ ;
/**
@@ -362,9 +414,8 @@ public long getBlockHeight() {
* @return This builder for chaining.
*/
public Builder setBlockHeight(long value) {
-
+
blockHeight_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +424,23 @@ public Builder setBlockHeight(long value) {
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
blockHeight_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetTransactionLogByBlockHeightRequest)
}
@@ -399,18 +462,7 @@ public GetTransactionLogByBlockHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetTransactionLogByBlockHeightRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequestOrBuilder.java
index 0072fb9..5067aa0 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponse.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponse.java
index cd3b6f2..2e9ee89 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,105 @@
* Protobuf type {@code iotexapi.GetTransactionLogByBlockHeightResponse}
*/
public final class GetTransactionLogByBlockHeightResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetTransactionLogByBlockHeightResponse)
GetTransactionLogByBlockHeightResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetTransactionLogByBlockHeightResponse.class.getName());
- }
// Use GetTransactionLogByBlockHeightResponse.newBuilder() to construct.
- private GetTransactionLogByBlockHeightResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetTransactionLogByBlockHeightResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTransactionLogByBlockHeightResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetTransactionLogByBlockHeightResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetTransactionLogByBlockHeightResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.TransactionLogs.Builder subBuilder = null;
+ if (transactionLogs_ != null) {
+ subBuilder = transactionLogs_.toBuilder();
+ }
+ transactionLogs_ = input.readMessage(com.github.iotexproject.grpc.types.TransactionLogs.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(transactionLogs_);
+ transactionLogs_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.types.BlockIdentifier.Builder subBuilder = null;
+ if (blockIdentifier_ != null) {
+ subBuilder = blockIdentifier_.toBuilder();
+ }
+ blockIdentifier_ = input.readMessage(com.github.iotexproject.grpc.types.BlockIdentifier.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(blockIdentifier_);
+ blockIdentifier_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByBlockHeightResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByBlockHeightResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse.class, com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse.Builder.class);
}
- private int bitField0_;
public static final int TRANSACTIONLOGS_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.TransactionLogs transactionLogs_;
/**
@@ -51,7 +114,7 @@ private GetTransactionLogByBlockHeightResponse() {
*/
@java.lang.Override
public boolean hasTransactionLogs() {
- return ((bitField0_ & 0x00000001) != 0);
+ return transactionLogs_ != null;
}
/**
* .iotextypes.TransactionLogs transactionLogs = 1;
@@ -66,7 +129,7 @@ public com.github.iotexproject.grpc.types.TransactionLogs getTransactionLogs() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.TransactionLogsOrBuilder getTransactionLogsOrBuilder() {
- return transactionLogs_ == null ? com.github.iotexproject.grpc.types.TransactionLogs.getDefaultInstance() : transactionLogs_;
+ return getTransactionLogs();
}
public static final int BLOCKIDENTIFIER_FIELD_NUMBER = 2;
@@ -77,7 +140,7 @@ public com.github.iotexproject.grpc.types.TransactionLogsOrBuilder getTransactio
*/
@java.lang.Override
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000002) != 0);
+ return blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -92,7 +155,7 @@ public com.github.iotexproject.grpc.types.BlockIdentifier getBlockIdentifier() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdentifierOrBuilder() {
- return blockIdentifier_ == null ? com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance() : blockIdentifier_;
+ return getBlockIdentifier();
}
private byte memoizedIsInitialized = -1;
@@ -109,13 +172,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (transactionLogs_ != null) {
output.writeMessage(1, getTransactionLogs());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (blockIdentifier_ != null) {
output.writeMessage(2, getBlockIdentifier());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -124,15 +187,15 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (transactionLogs_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTransactionLogs());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (blockIdentifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBlockIdentifier());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -157,7 +220,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlockIdentifier()
.equals(other.getBlockIdentifier())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -176,7 +239,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getBlockIdentifier().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -215,41 +278,39 @@ public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightRes
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -269,7 +330,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -277,7 +338,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetTransactionLogByBlockHeightResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetTransactionLogByBlockHeightResponse)
com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -286,7 +347,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetTransactionLogByBlockHeightResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -299,29 +360,28 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getTransactionLogsFieldBuilder();
- getBlockIdentifierFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- transactionLogs_ = null;
- if (transactionLogsBuilder_ != null) {
- transactionLogsBuilder_.dispose();
+ if (transactionLogsBuilder_ == null) {
+ transactionLogs_ = null;
+ } else {
+ transactionLogs_ = null;
transactionLogsBuilder_ = null;
}
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
return this;
@@ -350,29 +410,52 @@ public com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse b
@java.lang.Override
public com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse buildPartial() {
com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse result = new com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (transactionLogsBuilder_ == null) {
+ result.transactionLogs_ = transactionLogs_;
+ } else {
+ result.transactionLogs_ = transactionLogsBuilder_.build();
+ }
+ if (blockIdentifierBuilder_ == null) {
+ result.blockIdentifier_ = blockIdentifier_;
+ } else {
+ result.blockIdentifier_ = blockIdentifierBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.transactionLogs_ = transactionLogsBuilder_ == null
- ? transactionLogs_
- : transactionLogsBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.blockIdentifier_ = blockIdentifierBuilder_ == null
- ? blockIdentifier_
- : blockIdentifierBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse) {
@@ -391,7 +474,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetTransactionLogByBlo
if (other.hasBlockIdentifier()) {
mergeBlockIdentifier(other.getBlockIdentifier());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -406,57 +489,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getTransactionLogsFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getBlockIdentifierFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetTransactionLogByBlockHeightResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.TransactionLogs transactionLogs_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionLogs, com.github.iotexproject.grpc.types.TransactionLogs.Builder, com.github.iotexproject.grpc.types.TransactionLogsOrBuilder> transactionLogsBuilder_;
/**
* .iotextypes.TransactionLogs transactionLogs = 1;
* @return Whether the transactionLogs field is set.
*/
public boolean hasTransactionLogs() {
- return ((bitField0_ & 0x00000001) != 0);
+ return transactionLogsBuilder_ != null || transactionLogs_ != null;
}
/**
* .iotextypes.TransactionLogs transactionLogs = 1;
@@ -478,11 +533,11 @@ public Builder setTransactionLogs(com.github.iotexproject.grpc.types.Transaction
throw new NullPointerException();
}
transactionLogs_ = value;
+ onChanged();
} else {
transactionLogsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -492,11 +547,11 @@ public Builder setTransactionLogs(
com.github.iotexproject.grpc.types.TransactionLogs.Builder builderForValue) {
if (transactionLogsBuilder_ == null) {
transactionLogs_ = builderForValue.build();
+ onChanged();
} else {
transactionLogsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -504,40 +559,38 @@ public Builder setTransactionLogs(
*/
public Builder mergeTransactionLogs(com.github.iotexproject.grpc.types.TransactionLogs value) {
if (transactionLogsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- transactionLogs_ != null &&
- transactionLogs_ != com.github.iotexproject.grpc.types.TransactionLogs.getDefaultInstance()) {
- getTransactionLogsBuilder().mergeFrom(value);
+ if (transactionLogs_ != null) {
+ transactionLogs_ =
+ com.github.iotexproject.grpc.types.TransactionLogs.newBuilder(transactionLogs_).mergeFrom(value).buildPartial();
} else {
transactionLogs_ = value;
}
+ onChanged();
} else {
transactionLogsBuilder_.mergeFrom(value);
}
- if (transactionLogs_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.TransactionLogs transactionLogs = 1;
*/
public Builder clearTransactionLogs() {
- bitField0_ = (bitField0_ & ~0x00000001);
- transactionLogs_ = null;
- if (transactionLogsBuilder_ != null) {
- transactionLogsBuilder_.dispose();
+ if (transactionLogsBuilder_ == null) {
+ transactionLogs_ = null;
+ onChanged();
+ } else {
+ transactionLogs_ = null;
transactionLogsBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.TransactionLogs transactionLogs = 1;
*/
public com.github.iotexproject.grpc.types.TransactionLogs.Builder getTransactionLogsBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getTransactionLogsFieldBuilder().getBuilder();
}
@@ -555,11 +608,11 @@ public com.github.iotexproject.grpc.types.TransactionLogsOrBuilder getTransactio
/**
* .iotextypes.TransactionLogs transactionLogs = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionLogs, com.github.iotexproject.grpc.types.TransactionLogs.Builder, com.github.iotexproject.grpc.types.TransactionLogsOrBuilder>
getTransactionLogsFieldBuilder() {
if (transactionLogsBuilder_ == null) {
- transactionLogsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ transactionLogsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionLogs, com.github.iotexproject.grpc.types.TransactionLogs.Builder, com.github.iotexproject.grpc.types.TransactionLogsOrBuilder>(
getTransactionLogs(),
getParentForChildren(),
@@ -570,14 +623,14 @@ public com.github.iotexproject.grpc.types.TransactionLogsOrBuilder getTransactio
}
private com.github.iotexproject.grpc.types.BlockIdentifier blockIdentifier_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder> blockIdentifierBuilder_;
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
* @return Whether the blockIdentifier field is set.
*/
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000002) != 0);
+ return blockIdentifierBuilder_ != null || blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -599,11 +652,11 @@ public Builder setBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdenti
throw new NullPointerException();
}
blockIdentifier_ = value;
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -613,11 +666,11 @@ public Builder setBlockIdentifier(
com.github.iotexproject.grpc.types.BlockIdentifier.Builder builderForValue) {
if (blockIdentifierBuilder_ == null) {
blockIdentifier_ = builderForValue.build();
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -625,40 +678,38 @@ public Builder setBlockIdentifier(
*/
public Builder mergeBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdentifier value) {
if (blockIdentifierBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- blockIdentifier_ != null &&
- blockIdentifier_ != com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance()) {
- getBlockIdentifierBuilder().mergeFrom(value);
+ if (blockIdentifier_ != null) {
+ blockIdentifier_ =
+ com.github.iotexproject.grpc.types.BlockIdentifier.newBuilder(blockIdentifier_).mergeFrom(value).buildPartial();
} else {
blockIdentifier_ = value;
}
+ onChanged();
} else {
blockIdentifierBuilder_.mergeFrom(value);
}
- if (blockIdentifier_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public Builder clearBlockIdentifier() {
- bitField0_ = (bitField0_ & ~0x00000002);
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ onChanged();
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public com.github.iotexproject.grpc.types.BlockIdentifier.Builder getBlockIdentifierBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getBlockIdentifierFieldBuilder().getBuilder();
}
@@ -676,11 +727,11 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>
getBlockIdentifierFieldBuilder() {
if (blockIdentifierBuilder_ == null) {
- blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>(
getBlockIdentifier(),
getParentForChildren(),
@@ -689,6 +740,18 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
}
return blockIdentifierBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetTransactionLogByBlockHeightResponse)
}
@@ -710,18 +773,7 @@ public GetTransactionLogByBlockHeightResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetTransactionLogByBlockHeightResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponseOrBuilder.java
index ca0489e..57c2226 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetTransactionLogByBlockHeightResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequest.java b/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequest.java
index 3ea5b0a..1d59a7b 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,90 @@
* Protobuf type {@code iotexapi.GetUnconfirmedActionsByAddressRequest}
*/
public final class GetUnconfirmedActionsByAddressRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.GetUnconfirmedActionsByAddressRequest)
GetUnconfirmedActionsByAddressRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- GetUnconfirmedActionsByAddressRequest.class.getName());
- }
// Use GetUnconfirmedActionsByAddressRequest.newBuilder() to construct.
- private GetUnconfirmedActionsByAddressRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private GetUnconfirmedActionsByAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetUnconfirmedActionsByAddressRequest() {
address_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetUnconfirmedActionsByAddressRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetUnconfirmedActionsByAddressRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ address_ = s;
+ break;
+ }
+ case 16: {
+
+ start_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ count_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetUnconfirmedActionsByAddressRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetUnconfirmedActionsByAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +98,7 @@ private GetUnconfirmedActionsByAddressRequest() {
}
public static final int ADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object address_ = "";
+ private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
@@ -83,7 +136,7 @@ public java.lang.String getAddress() {
}
public static final int START_FIELD_NUMBER = 2;
- private long start_ = 0L;
+ private long start_;
/**
* uint64 start = 2;
* @return The start.
@@ -94,7 +147,7 @@ public long getStart() {
}
public static final int COUNT_FIELD_NUMBER = 3;
- private long count_ = 0L;
+ private long count_;
/**
* uint64 count = 3;
* @return The count.
@@ -118,8 +171,8 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (start_ != 0L) {
output.writeUInt64(2, start_);
@@ -127,7 +180,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (count_ != 0L) {
output.writeUInt64(3, count_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -136,8 +189,8 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (start_ != 0L) {
size += com.google.protobuf.CodedOutputStream
@@ -147,7 +200,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, count_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -168,7 +221,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getStart()) return false;
if (getCount()
!= other.getCount()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -187,7 +240,7 @@ public int hashCode() {
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -226,41 +279,39 @@ public static com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressReq
}
public static com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -280,7 +331,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -288,7 +339,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.GetUnconfirmedActionsByAddressRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.GetUnconfirmedActionsByAddressRequest)
com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -297,7 +348,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_GetUnconfirmedActionsByAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -306,21 +357,28 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
address_ = "";
+
start_ = 0L;
+
count_ = 0L;
+
return this;
}
@@ -347,24 +405,45 @@ public com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest bu
@java.lang.Override
public com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest buildPartial() {
com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest result = new com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.address_ = address_;
+ result.start_ = start_;
+ result.count_ = count_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.address_ = address_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.start_ = start_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.count_ = count_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest) {
@@ -379,7 +458,6 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetUnconfirmedActionsB
if (other == com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.getStart() != 0L) {
@@ -388,7 +466,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.GetUnconfirmedActionsB
if (other.getCount() != 0L) {
setCount(other.getCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -403,48 +481,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- address_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16: {
- start_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24: {
- count_ = input.readUInt64();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.GetUnconfirmedActionsByAddressRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object address_ = "";
/**
@@ -487,9 +536,11 @@ public java.lang.String getAddress() {
*/
public Builder setAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -498,8 +549,8 @@ public Builder setAddress(
* @return This builder for chaining.
*/
public Builder clearAddress() {
+
address_ = getDefaultInstance().getAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -510,10 +561,12 @@ public Builder clearAddress() {
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -533,9 +586,8 @@ public long getStart() {
* @return This builder for chaining.
*/
public Builder setStart(long value) {
-
+
start_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -544,7 +596,7 @@ public Builder setStart(long value) {
* @return This builder for chaining.
*/
public Builder clearStart() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
start_ = 0L;
onChanged();
return this;
@@ -565,9 +617,8 @@ public long getCount() {
* @return This builder for chaining.
*/
public Builder setCount(long value) {
-
+
count_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -576,11 +627,23 @@ public Builder setCount(long value) {
* @return This builder for chaining.
*/
public Builder clearCount() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
count_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.GetUnconfirmedActionsByAddressRequest)
}
@@ -602,18 +665,7 @@ public GetUnconfirmedActionsByAddressRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GetUnconfirmedActionsByAddressRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequestOrBuilder.java
index 9631a23..43a52b9 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/GetUnconfirmedActionsByAddressRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/LogsFilter.java b/src/main/java/com/github/iotexproject/grpc/api/LogsFilter.java
index f8bd784..aec86d5 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/LogsFilter.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/LogsFilter.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,36 +7,100 @@
* Protobuf type {@code iotexapi.LogsFilter}
*/
public final class LogsFilter extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.LogsFilter)
LogsFilterOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- LogsFilter.class.getName());
- }
// Use LogsFilter.newBuilder() to construct.
- private LogsFilter(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private LogsFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LogsFilter() {
- address_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
topics_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new LogsFilter();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private LogsFilter(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ address_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ address_.add(s);
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ topics_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ topics_.add(
+ input.readMessage(com.github.iotexproject.grpc.api.Topics.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ address_ = address_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ topics_ = java.util.Collections.unmodifiableList(topics_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_LogsFilter_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_LogsFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -46,9 +108,7 @@ private LogsFilter() {
}
public static final int ADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList address_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList address_;
/**
* repeated string address = 1;
* @return A list containing the address.
@@ -83,7 +143,6 @@ public java.lang.String getAddress(int index) {
}
public static final int TOPICS_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
private java.util.List topics_;
/**
* repeated .iotexapi.Topics topics = 2;
@@ -138,12 +197,12 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < address_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, address_.getRaw(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_.getRaw(i));
}
for (int i = 0; i < topics_.size(); i++) {
output.writeMessage(2, topics_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -164,7 +223,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, topics_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -183,7 +242,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getAddressList())) return false;
if (!getTopicsList()
.equals(other.getTopicsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -202,7 +261,7 @@ public int hashCode() {
hash = (37 * hash) + TOPICS_FIELD_NUMBER;
hash = (53 * hash) + getTopicsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -241,41 +300,39 @@ public static com.github.iotexproject.grpc.api.LogsFilter parseFrom(
}
public static com.github.iotexproject.grpc.api.LogsFilter parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.LogsFilter parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.LogsFilter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.LogsFilter parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.LogsFilter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.LogsFilter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -295,7 +352,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -303,7 +360,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.LogsFilter}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.LogsFilter)
com.github.iotexproject.grpc.api.LogsFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -312,7 +369,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_LogsFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -321,27 +378,31 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.LogsFilter.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getTopicsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- address_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
if (topicsBuilder_ == null) {
topics_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
- topics_ = null;
topicsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -368,13 +429,12 @@ public com.github.iotexproject.grpc.api.LogsFilter build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.LogsFilter buildPartial() {
com.github.iotexproject.grpc.api.LogsFilter result = new com.github.iotexproject.grpc.api.LogsFilter(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.LogsFilter result) {
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ address_ = address_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.address_ = address_;
if (topicsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
topics_ = java.util.Collections.unmodifiableList(topics_);
@@ -384,16 +444,42 @@ private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.LogsFil
} else {
result.topics_ = topicsBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.LogsFilter result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- address_.makeImmutable();
- result.address_ = address_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.LogsFilter) {
@@ -409,7 +495,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.LogsFilter other) {
if (!other.address_.isEmpty()) {
if (address_.isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000001;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAddressIsMutable();
address_.addAll(other.address_);
@@ -435,14 +521,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.LogsFilter other) {
topics_ = other.topics_;
bitField0_ = (bitField0_ & ~0x00000002);
topicsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTopicsFieldBuilder() : null;
} else {
topicsBuilder_.addAllMessages(other.topics_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -457,60 +543,27 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.LogsFilter parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
- ensureAddressIsMutable();
- address_.add(s);
- break;
- } // case 10
- case 18: {
- com.github.iotexproject.grpc.api.Topics m =
- input.readMessage(
- com.github.iotexproject.grpc.api.Topics.parser(),
- extensionRegistry);
- if (topicsBuilder_ == null) {
- ensureTopicsIsMutable();
- topics_.add(m);
- } else {
- topicsBuilder_.addMessage(m);
- }
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.LogsFilter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
- private com.google.protobuf.LazyStringArrayList address_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAddressIsMutable() {
- if (!address_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
address_ = new com.google.protobuf.LazyStringArrayList(address_);
- }
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000001;
+ }
}
/**
* repeated string address = 1;
@@ -518,8 +571,7 @@ private void ensureAddressIsMutable() {
*/
public com.google.protobuf.ProtocolStringList
getAddressList() {
- address_.makeImmutable();
- return address_;
+ return address_.getUnmodifiableView();
}
/**
* repeated string address = 1;
@@ -553,10 +605,11 @@ public java.lang.String getAddress(int index) {
*/
public Builder setAddress(
int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureAddressIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAddressIsMutable();
address_.set(index, value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -567,10 +620,11 @@ public Builder setAddress(
*/
public Builder addAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureAddressIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAddressIsMutable();
address_.add(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -584,7 +638,6 @@ public Builder addAllAddress(
ensureAddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, address_);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -593,9 +646,8 @@ public Builder addAllAddress(
* @return This builder for chaining.
*/
public Builder clearAddress() {
- address_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);;
+ address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -606,11 +658,12 @@ public Builder clearAddress() {
*/
public Builder addAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
ensureAddressIsMutable();
address_.add(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -624,7 +677,7 @@ private void ensureTopicsIsMutable() {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.Topics, com.github.iotexproject.grpc.api.Topics.Builder, com.github.iotexproject.grpc.api.TopicsOrBuilder> topicsBuilder_;
/**
@@ -840,11 +893,11 @@ public com.github.iotexproject.grpc.api.Topics.Builder addTopicsBuilder(
getTopicsBuilderList() {
return getTopicsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.Topics, com.github.iotexproject.grpc.api.Topics.Builder, com.github.iotexproject.grpc.api.TopicsOrBuilder>
getTopicsFieldBuilder() {
if (topicsBuilder_ == null) {
- topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.api.Topics, com.github.iotexproject.grpc.api.Topics.Builder, com.github.iotexproject.grpc.api.TopicsOrBuilder>(
topics_,
((bitField0_ & 0x00000002) != 0),
@@ -854,6 +907,18 @@ public com.github.iotexproject.grpc.api.Topics.Builder addTopicsBuilder(
}
return topicsBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.LogsFilter)
}
@@ -875,18 +940,7 @@ public LogsFilter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new LogsFilter(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/LogsFilterOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/LogsFilterOrBuilder.java
index 7b23b3e..10863cd 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/LogsFilterOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/LogsFilterOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/PaginationParam.java b/src/main/java/com/github/iotexproject/grpc/api/PaginationParam.java
index 5821c1d..9e0f087 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/PaginationParam.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/PaginationParam.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/read_state.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,83 @@
* Protobuf type {@code iotexapi.PaginationParam}
*/
public final class PaginationParam extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.PaginationParam)
PaginationParamOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- PaginationParam.class.getName());
- }
// Use PaginationParam.newBuilder() to construct.
- private PaginationParam(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private PaginationParam(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PaginationParam() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PaginationParam();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private PaginationParam(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ offset_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ limit_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_PaginationParam_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_PaginationParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +91,7 @@ private PaginationParam() {
}
public static final int OFFSET_FIELD_NUMBER = 1;
- private int offset_ = 0;
+ private int offset_;
/**
* uint32 offset = 1;
* @return The offset.
@@ -54,7 +102,7 @@ public int getOffset() {
}
public static final int LIMIT_FIELD_NUMBER = 2;
- private int limit_ = 0;
+ private int limit_;
/**
* uint32 limit = 2;
* @return The limit.
@@ -84,7 +132,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (limit_ != 0) {
output.writeUInt32(2, limit_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -101,7 +149,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, limit_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -120,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getOffset()) return false;
if (getLimit()
!= other.getLimit()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -135,7 +183,7 @@ public int hashCode() {
hash = (53 * hash) + getOffset();
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -174,41 +222,39 @@ public static com.github.iotexproject.grpc.api.PaginationParam parseFrom(
}
public static com.github.iotexproject.grpc.api.PaginationParam parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.PaginationParam parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.PaginationParam parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.PaginationParam parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.PaginationParam parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.PaginationParam parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -228,7 +274,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -236,7 +282,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.PaginationParam}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.PaginationParam)
com.github.iotexproject.grpc.api.PaginationParamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -245,7 +291,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_PaginationParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -254,20 +300,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.PaginationParam.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
offset_ = 0;
+
limit_ = 0;
+
return this;
}
@@ -294,21 +346,44 @@ public com.github.iotexproject.grpc.api.PaginationParam build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.PaginationParam buildPartial() {
com.github.iotexproject.grpc.api.PaginationParam result = new com.github.iotexproject.grpc.api.PaginationParam(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.offset_ = offset_;
+ result.limit_ = limit_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.PaginationParam result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.offset_ = offset_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.limit_ = limit_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.PaginationParam) {
@@ -327,7 +402,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.PaginationParam other)
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -342,43 +417,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.PaginationParam parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- offset_ = input.readUInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- limit_ = input.readUInt32();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.PaginationParam) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private int offset_ ;
/**
@@ -395,9 +446,8 @@ public int getOffset() {
* @return This builder for chaining.
*/
public Builder setOffset(int value) {
-
+
offset_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -406,7 +456,7 @@ public Builder setOffset(int value) {
* @return This builder for chaining.
*/
public Builder clearOffset() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
offset_ = 0;
onChanged();
return this;
@@ -427,9 +477,8 @@ public int getLimit() {
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
-
+
limit_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -438,11 +487,23 @@ public Builder setLimit(int value) {
* @return This builder for chaining.
*/
public Builder clearLimit() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
limit_ = 0;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.PaginationParam)
}
@@ -464,18 +525,7 @@ public PaginationParam parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new PaginationParam(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/PaginationParamOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/PaginationParamOrBuilder.java
index f215d0a..0c0fcec 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/PaginationParamOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/PaginationParamOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/read_state.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequest.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequest.java
index ff98802..921ee95 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotexapi.ReadContractRequest}
*/
public final class ReadContractRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadContractRequest)
ReadContractRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadContractRequest.class.getName());
- }
// Use ReadContractRequest.newBuilder() to construct.
- private ReadContractRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadContractRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadContractRequest() {
@@ -31,20 +20,98 @@ private ReadContractRequest() {
gasPrice_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadContractRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadContractRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.Execution.Builder subBuilder = null;
+ if (execution_ != null) {
+ subBuilder = execution_.toBuilder();
+ }
+ execution_ = input.readMessage(com.github.iotexproject.grpc.types.Execution.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(execution_);
+ execution_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ callerAddress_ = s;
+ break;
+ }
+ case 24: {
+
+ gasLimit_ = input.readUInt64();
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gasPrice_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReadContractRequest.class, com.github.iotexproject.grpc.api.ReadContractRequest.Builder.class);
}
- private int bitField0_;
public static final int EXECUTION_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.Execution execution_;
/**
@@ -53,7 +120,7 @@ private ReadContractRequest() {
*/
@java.lang.Override
public boolean hasExecution() {
- return ((bitField0_ & 0x00000001) != 0);
+ return execution_ != null;
}
/**
* .iotextypes.Execution execution = 1;
@@ -68,12 +135,11 @@ public com.github.iotexproject.grpc.types.Execution getExecution() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ExecutionOrBuilder getExecutionOrBuilder() {
- return execution_ == null ? com.github.iotexproject.grpc.types.Execution.getDefaultInstance() : execution_;
+ return getExecution();
}
public static final int CALLERADDRESS_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object callerAddress_ = "";
+ private volatile java.lang.Object callerAddress_;
/**
* string callerAddress = 2;
* @return The callerAddress.
@@ -111,7 +177,7 @@ public java.lang.String getCallerAddress() {
}
public static final int GASLIMIT_FIELD_NUMBER = 3;
- private long gasLimit_ = 0L;
+ private long gasLimit_;
/**
* uint64 gasLimit = 3;
* @return The gasLimit.
@@ -122,8 +188,7 @@ public long getGasLimit() {
}
public static final int GASPRICE_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private volatile java.lang.Object gasPrice_ = "";
+ private volatile java.lang.Object gasPrice_;
/**
* string gasPrice = 4;
* @return The gasPrice.
@@ -174,19 +239,19 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (execution_ != null) {
output.writeMessage(1, getExecution());
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(callerAddress_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, callerAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callerAddress_);
}
if (gasLimit_ != 0L) {
output.writeUInt64(3, gasLimit_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasPrice_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, gasPrice_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasPrice_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gasPrice_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -195,21 +260,21 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (execution_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getExecution());
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(callerAddress_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, callerAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerAddress_);
}
if (gasLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, gasLimit_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasPrice_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, gasPrice_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasPrice_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gasPrice_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -235,7 +300,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getGasLimit()) return false;
if (!getGasPrice()
.equals(other.getGasPrice())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -257,7 +322,7 @@ public int hashCode() {
getGasLimit());
hash = (37 * hash) + GASPRICE_FIELD_NUMBER;
hash = (53 * hash) + getGasPrice().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -296,41 +361,39 @@ public static com.github.iotexproject.grpc.api.ReadContractRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.ReadContractRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadContractRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadContractRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadContractRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -350,7 +413,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -358,7 +421,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadContractRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadContractRequest)
com.github.iotexproject.grpc.api.ReadContractRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -367,7 +430,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -380,28 +443,30 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getExecutionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- execution_ = null;
- if (executionBuilder_ != null) {
- executionBuilder_.dispose();
+ if (executionBuilder_ == null) {
+ execution_ = null;
+ } else {
+ execution_ = null;
executionBuilder_ = null;
}
callerAddress_ = "";
+
gasLimit_ = 0L;
+
gasPrice_ = "";
+
return this;
}
@@ -428,32 +493,50 @@ public com.github.iotexproject.grpc.api.ReadContractRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadContractRequest buildPartial() {
com.github.iotexproject.grpc.api.ReadContractRequest result = new com.github.iotexproject.grpc.api.ReadContractRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (executionBuilder_ == null) {
+ result.execution_ = execution_;
+ } else {
+ result.execution_ = executionBuilder_.build();
+ }
+ result.callerAddress_ = callerAddress_;
+ result.gasLimit_ = gasLimit_;
+ result.gasPrice_ = gasPrice_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadContractRequest result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.execution_ = executionBuilder_ == null
- ? execution_
- : executionBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.callerAddress_ = callerAddress_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.gasLimit_ = gasLimit_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.gasPrice_ = gasPrice_;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadContractRequest) {
@@ -471,7 +554,6 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadContractRequest ot
}
if (!other.getCallerAddress().isEmpty()) {
callerAddress_ = other.callerAddress_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (other.getGasLimit() != 0L) {
@@ -479,10 +561,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadContractRequest ot
}
if (!other.getGasPrice().isEmpty()) {
gasPrice_ = other.gasPrice_;
- bitField0_ |= 0x00000008;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -497,65 +578,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadContractRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getExecutionFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- callerAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 24: {
- gasLimit_ = input.readUInt64();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- case 34: {
- gasPrice_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadContractRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.Execution execution_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder> executionBuilder_;
/**
* .iotextypes.Execution execution = 1;
* @return Whether the execution field is set.
*/
public boolean hasExecution() {
- return ((bitField0_ & 0x00000001) != 0);
+ return executionBuilder_ != null || execution_ != null;
}
/**
* .iotextypes.Execution execution = 1;
@@ -577,11 +622,11 @@ public Builder setExecution(com.github.iotexproject.grpc.types.Execution value)
throw new NullPointerException();
}
execution_ = value;
+ onChanged();
} else {
executionBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -591,11 +636,11 @@ public Builder setExecution(
com.github.iotexproject.grpc.types.Execution.Builder builderForValue) {
if (executionBuilder_ == null) {
execution_ = builderForValue.build();
+ onChanged();
} else {
executionBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -603,40 +648,38 @@ public Builder setExecution(
*/
public Builder mergeExecution(com.github.iotexproject.grpc.types.Execution value) {
if (executionBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- execution_ != null &&
- execution_ != com.github.iotexproject.grpc.types.Execution.getDefaultInstance()) {
- getExecutionBuilder().mergeFrom(value);
+ if (execution_ != null) {
+ execution_ =
+ com.github.iotexproject.grpc.types.Execution.newBuilder(execution_).mergeFrom(value).buildPartial();
} else {
execution_ = value;
}
+ onChanged();
} else {
executionBuilder_.mergeFrom(value);
}
- if (execution_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.Execution execution = 1;
*/
public Builder clearExecution() {
- bitField0_ = (bitField0_ & ~0x00000001);
- execution_ = null;
- if (executionBuilder_ != null) {
- executionBuilder_.dispose();
+ if (executionBuilder_ == null) {
+ execution_ = null;
+ onChanged();
+ } else {
+ execution_ = null;
executionBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.Execution execution = 1;
*/
public com.github.iotexproject.grpc.types.Execution.Builder getExecutionBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getExecutionFieldBuilder().getBuilder();
}
@@ -654,11 +697,11 @@ public com.github.iotexproject.grpc.types.ExecutionOrBuilder getExecutionOrBuild
/**
* .iotextypes.Execution execution = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder>
getExecutionFieldBuilder() {
if (executionBuilder_ == null) {
- executionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder>(
getExecution(),
getParentForChildren(),
@@ -709,9 +752,11 @@ public java.lang.String getCallerAddress() {
*/
public Builder setCallerAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
callerAddress_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -720,8 +765,8 @@ public Builder setCallerAddress(
* @return This builder for chaining.
*/
public Builder clearCallerAddress() {
+
callerAddress_ = getDefaultInstance().getCallerAddress();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -732,10 +777,12 @@ public Builder clearCallerAddress() {
*/
public Builder setCallerAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
callerAddress_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -755,9 +802,8 @@ public long getGasLimit() {
* @return This builder for chaining.
*/
public Builder setGasLimit(long value) {
-
+
gasLimit_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -766,7 +812,7 @@ public Builder setGasLimit(long value) {
* @return This builder for chaining.
*/
public Builder clearGasLimit() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
gasLimit_ = 0L;
onChanged();
return this;
@@ -813,9 +859,11 @@ public java.lang.String getGasPrice() {
*/
public Builder setGasPrice(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
gasPrice_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -824,8 +872,8 @@ public Builder setGasPrice(
* @return This builder for chaining.
*/
public Builder clearGasPrice() {
+
gasPrice_ = getDefaultInstance().getGasPrice();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -836,13 +884,27 @@ public Builder clearGasPrice() {
*/
public Builder setGasPriceBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
gasPrice_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadContractRequest)
}
@@ -864,18 +926,7 @@ public ReadContractRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadContractRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequestOrBuilder.java
index cd51637..1b27293 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponse.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponse.java
index 5c57662..2b7d144 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,44 +7,101 @@
* Protobuf type {@code iotexapi.ReadContractResponse}
*/
public final class ReadContractResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadContractResponse)
ReadContractResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadContractResponse.class.getName());
- }
// Use ReadContractResponse.newBuilder() to construct.
- private ReadContractResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadContractResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadContractResponse() {
data_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadContractResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadContractResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ data_ = s;
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.types.Receipt.Builder subBuilder = null;
+ if (receipt_ != null) {
+ subBuilder = receipt_.toBuilder();
+ }
+ receipt_ = input.readMessage(com.github.iotexproject.grpc.types.Receipt.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(receipt_);
+ receipt_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReadContractResponse.class, com.github.iotexproject.grpc.api.ReadContractResponse.Builder.class);
}
- private int bitField0_;
public static final int DATA_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object data_ = "";
+ private volatile java.lang.Object data_;
/**
* string data = 1;
* @return The data.
@@ -91,7 +146,7 @@ public java.lang.String getData() {
*/
@java.lang.Override
public boolean hasReceipt() {
- return ((bitField0_ & 0x00000001) != 0);
+ return receipt_ != null;
}
/**
* .iotextypes.Receipt receipt = 2;
@@ -106,7 +161,7 @@ public com.github.iotexproject.grpc.types.Receipt getReceipt() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ReceiptOrBuilder getReceiptOrBuilder() {
- return receipt_ == null ? com.github.iotexproject.grpc.types.Receipt.getDefaultInstance() : receipt_;
+ return getReceipt();
}
private byte memoizedIsInitialized = -1;
@@ -123,13 +178,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(data_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, data_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (receipt_ != null) {
output.writeMessage(2, getReceipt());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -138,14 +193,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(data_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, data_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (receipt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getReceipt());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -167,7 +222,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getReceipt()
.equals(other.getReceipt())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -184,7 +239,7 @@ public int hashCode() {
hash = (37 * hash) + RECEIPT_FIELD_NUMBER;
hash = (53 * hash) + getReceipt().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -223,41 +278,39 @@ public static com.github.iotexproject.grpc.api.ReadContractResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.ReadContractResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadContractResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadContractResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadContractResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -277,7 +330,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -285,7 +338,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadContractResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadContractResponse)
com.github.iotexproject.grpc.api.ReadContractResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -294,7 +347,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -307,24 +360,24 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getReceiptFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
data_ = "";
- receipt_ = null;
- if (receiptBuilder_ != null) {
- receiptBuilder_.dispose();
+
+ if (receiptBuilder_ == null) {
+ receipt_ = null;
+ } else {
+ receipt_ = null;
receiptBuilder_ = null;
}
return this;
@@ -353,26 +406,48 @@ public com.github.iotexproject.grpc.api.ReadContractResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadContractResponse buildPartial() {
com.github.iotexproject.grpc.api.ReadContractResponse result = new com.github.iotexproject.grpc.api.ReadContractResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.data_ = data_;
+ if (receiptBuilder_ == null) {
+ result.receipt_ = receipt_;
+ } else {
+ result.receipt_ = receiptBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadContractResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.data_ = data_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.receipt_ = receiptBuilder_ == null
- ? receipt_
- : receiptBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadContractResponse) {
@@ -387,13 +462,12 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadContractResponse o
if (other == com.github.iotexproject.grpc.api.ReadContractResponse.getDefaultInstance()) return this;
if (!other.getData().isEmpty()) {
data_ = other.data_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasReceipt()) {
mergeReceipt(other.getReceipt());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -408,45 +482,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadContractResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- data_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getReceiptFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadContractResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object data_ = "";
/**
@@ -489,9 +537,11 @@ public java.lang.String getData() {
*/
public Builder setData(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
data_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -500,8 +550,8 @@ public Builder setData(
* @return This builder for chaining.
*/
public Builder clearData() {
+
data_ = getDefaultInstance().getData();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -512,23 +562,25 @@ public Builder clearData() {
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
data_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.github.iotexproject.grpc.types.Receipt receipt_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Receipt, com.github.iotexproject.grpc.types.Receipt.Builder, com.github.iotexproject.grpc.types.ReceiptOrBuilder> receiptBuilder_;
/**
* .iotextypes.Receipt receipt = 2;
* @return Whether the receipt field is set.
*/
public boolean hasReceipt() {
- return ((bitField0_ & 0x00000002) != 0);
+ return receiptBuilder_ != null || receipt_ != null;
}
/**
* .iotextypes.Receipt receipt = 2;
@@ -550,11 +602,11 @@ public Builder setReceipt(com.github.iotexproject.grpc.types.Receipt value) {
throw new NullPointerException();
}
receipt_ = value;
+ onChanged();
} else {
receiptBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -564,11 +616,11 @@ public Builder setReceipt(
com.github.iotexproject.grpc.types.Receipt.Builder builderForValue) {
if (receiptBuilder_ == null) {
receipt_ = builderForValue.build();
+ onChanged();
} else {
receiptBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -576,40 +628,38 @@ public Builder setReceipt(
*/
public Builder mergeReceipt(com.github.iotexproject.grpc.types.Receipt value) {
if (receiptBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- receipt_ != null &&
- receipt_ != com.github.iotexproject.grpc.types.Receipt.getDefaultInstance()) {
- getReceiptBuilder().mergeFrom(value);
+ if (receipt_ != null) {
+ receipt_ =
+ com.github.iotexproject.grpc.types.Receipt.newBuilder(receipt_).mergeFrom(value).buildPartial();
} else {
receipt_ = value;
}
+ onChanged();
} else {
receiptBuilder_.mergeFrom(value);
}
- if (receipt_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.Receipt receipt = 2;
*/
public Builder clearReceipt() {
- bitField0_ = (bitField0_ & ~0x00000002);
- receipt_ = null;
- if (receiptBuilder_ != null) {
- receiptBuilder_.dispose();
+ if (receiptBuilder_ == null) {
+ receipt_ = null;
+ onChanged();
+ } else {
+ receipt_ = null;
receiptBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.Receipt receipt = 2;
*/
public com.github.iotexproject.grpc.types.Receipt.Builder getReceiptBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getReceiptFieldBuilder().getBuilder();
}
@@ -627,11 +677,11 @@ public com.github.iotexproject.grpc.types.ReceiptOrBuilder getReceiptOrBuilder()
/**
* .iotextypes.Receipt receipt = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Receipt, com.github.iotexproject.grpc.types.Receipt.Builder, com.github.iotexproject.grpc.types.ReceiptOrBuilder>
getReceiptFieldBuilder() {
if (receiptBuilder_ == null) {
- receiptBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Receipt, com.github.iotexproject.grpc.types.Receipt.Builder, com.github.iotexproject.grpc.types.ReceiptOrBuilder>(
getReceipt(),
getParentForChildren(),
@@ -640,6 +690,18 @@ public com.github.iotexproject.grpc.types.ReceiptOrBuilder getReceiptOrBuilder()
}
return receiptBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadContractResponse)
}
@@ -661,18 +723,7 @@ public ReadContractResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadContractResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponseOrBuilder.java
index 1cc4f10..e08f09f 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequest.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequest.java
index e20bcae..cc83389 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotexapi.ReadContractStorageRequest}
*/
public final class ReadContractStorageRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadContractStorageRequest)
ReadContractStorageRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadContractStorageRequest.class.getName());
- }
// Use ReadContractStorageRequest.newBuilder() to construct.
- private ReadContractStorageRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadContractStorageRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadContractStorageRequest() {
@@ -31,13 +20,73 @@ private ReadContractStorageRequest() {
key_ = com.google.protobuf.ByteString.EMPTY;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadContractStorageRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadContractStorageRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ contract_ = s;
+ break;
+ }
+ case 18: {
+
+ key_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractStorageRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractStorageRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -45,8 +94,7 @@ private ReadContractStorageRequest() {
}
public static final int CONTRACT_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object contract_ = "";
+ private volatile java.lang.Object contract_;
/**
* string contract = 1;
* @return The contract.
@@ -84,7 +132,7 @@ public java.lang.String getContract() {
}
public static final int KEY_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString key_;
/**
* bytes key = 2;
* @return The key.
@@ -108,13 +156,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contract_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, contract_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contract_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -123,14 +171,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contract_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contract_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contract_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -149,7 +197,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getContract())) return false;
if (!getKey()
.equals(other.getKey())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -164,7 +212,7 @@ public int hashCode() {
hash = (53 * hash) + getContract().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -203,41 +251,39 @@ public static com.github.iotexproject.grpc.api.ReadContractStorageRequest parseF
}
public static com.github.iotexproject.grpc.api.ReadContractStorageRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractStorageRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadContractStorageRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadContractStorageRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadContractStorageRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractStorageRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -257,7 +303,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -265,7 +311,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadContractStorageRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadContractStorageRequest)
com.github.iotexproject.grpc.api.ReadContractStorageRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -274,7 +320,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractStorageRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -283,20 +329,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadContractStorageRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
contract_ = "";
+
key_ = com.google.protobuf.ByteString.EMPTY;
+
return this;
}
@@ -323,21 +375,44 @@ public com.github.iotexproject.grpc.api.ReadContractStorageRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadContractStorageRequest buildPartial() {
com.github.iotexproject.grpc.api.ReadContractStorageRequest result = new com.github.iotexproject.grpc.api.ReadContractStorageRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.contract_ = contract_;
+ result.key_ = key_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadContractStorageRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.contract_ = contract_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.key_ = key_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadContractStorageRequest) {
@@ -352,13 +427,12 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadContractStorageReq
if (other == com.github.iotexproject.grpc.api.ReadContractStorageRequest.getDefaultInstance()) return this;
if (!other.getContract().isEmpty()) {
contract_ = other.contract_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -373,43 +447,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadContractStorageRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- contract_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- key_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadContractStorageRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object contract_ = "";
/**
@@ -452,9 +502,11 @@ public java.lang.String getContract() {
*/
public Builder setContract(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
contract_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -463,8 +515,8 @@ public Builder setContract(
* @return This builder for chaining.
*/
public Builder clearContract() {
+
contract_ = getDefaultInstance().getContract();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -475,10 +527,12 @@ public Builder clearContract() {
*/
public Builder setContractBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
contract_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -498,9 +552,11 @@ public com.google.protobuf.ByteString getKey() {
* @return This builder for chaining.
*/
public Builder setKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
key_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -509,11 +565,23 @@ public Builder setKey(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadContractStorageRequest)
}
@@ -535,18 +603,7 @@ public ReadContractStorageRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadContractStorageRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequestOrBuilder.java
index 1909a6a..bdc3339 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponse.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponse.java
index e2122d6..551673c 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,79 @@
* Protobuf type {@code iotexapi.ReadContractStorageResponse}
*/
public final class ReadContractStorageResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadContractStorageResponse)
ReadContractStorageResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadContractStorageResponse.class.getName());
- }
// Use ReadContractStorageResponse.newBuilder() to construct.
- private ReadContractStorageResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadContractStorageResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadContractStorageResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadContractStorageResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadContractStorageResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+
+ data_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractStorageResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractStorageResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +87,7 @@ private ReadContractStorageResponse() {
}
public static final int DATA_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString data_;
/**
* bytes data = 1;
* @return The data.
@@ -71,7 +114,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!data_.isEmpty()) {
output.writeBytes(1, data_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -84,7 +127,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -101,7 +144,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getData()
.equals(other.getData())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.api.ReadContractStorageResponse parse
}
public static com.github.iotexproject.grpc.api.ReadContractStorageResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractStorageResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadContractStorageResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadContractStorageResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadContractStorageResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadContractStorageResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadContractStorageResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadContractStorageResponse)
com.github.iotexproject.grpc.api.ReadContractStorageResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadContractStorageResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadContractStorageResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.api.ReadContractStorageResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadContractStorageResponse buildPartial() {
com.github.iotexproject.grpc.api.ReadContractStorageResponse result = new com.github.iotexproject.grpc.api.ReadContractStorageResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.data_ = data_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadContractStorageResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.data_ = data_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadContractStorageResponse) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadContractStorageRes
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadContractStorageResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- data_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadContractStorageResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
@@ -362,9 +414,11 @@ public com.google.protobuf.ByteString getData() {
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
data_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +427,23 @@ public Builder setData(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearData() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadContractStorageResponse)
}
@@ -399,18 +465,7 @@ public ReadContractStorageResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadContractStorageResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponseOrBuilder.java
index 7640d30..186f9bc 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadContractStorageResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethod.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethod.java
index c64c53d..efe4711 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethod.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethod.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/read_state.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.ReadStakingDataMethod}
*/
public final class ReadStakingDataMethod extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataMethod)
ReadStakingDataMethodOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadStakingDataMethod.class.getName());
- }
// Use ReadStakingDataMethod.newBuilder() to construct.
- private ReadStakingDataMethod(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadStakingDataMethod(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadStakingDataMethod() {
method_ = 0;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadStakingDataMethod();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadStakingDataMethod(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ int rawValue = input.readEnum();
+
+ method_ = rawValue;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataMethod_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataMethod_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -123,15 +167,6 @@ public enum Name
UNRECOGNIZED(-1),
;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Name.class.getName());
- }
/**
* INVALID = 0;
*/
@@ -304,7 +339,7 @@ private Name(int value) {
}
public static final int METHOD_FIELD_NUMBER = 1;
- private int method_ = 0;
+ private int method_;
/**
* .iotexapi.ReadStakingDataMethod.Name method = 1;
* @return The enum numeric value on the wire for method.
@@ -317,7 +352,8 @@ private Name(int value) {
* @return The method.
*/
@java.lang.Override public com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name getMethod() {
- com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name result = com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name.forNumber(method_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name result = com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name.valueOf(method_);
return result == null ? com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name.UNRECOGNIZED : result;
}
@@ -338,7 +374,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (method_ != com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name.INVALID.getNumber()) {
output.writeEnum(1, method_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -351,7 +387,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, method_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -367,7 +403,7 @@ public boolean equals(final java.lang.Object obj) {
com.github.iotexproject.grpc.api.ReadStakingDataMethod other = (com.github.iotexproject.grpc.api.ReadStakingDataMethod) obj;
if (method_ != other.method_) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -380,7 +416,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + method_;
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -419,41 +455,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataMethod parseFrom(
}
public static com.github.iotexproject.grpc.api.ReadStakingDataMethod parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataMethod parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataMethod parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataMethod parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataMethod parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataMethod parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -473,7 +507,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -481,7 +515,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataMethod}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataMethod)
com.github.iotexproject.grpc.api.ReadStakingDataMethodOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -490,7 +524,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataMethod_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -499,19 +533,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataMethod.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
method_ = 0;
+
return this;
}
@@ -538,18 +577,43 @@ public com.github.iotexproject.grpc.api.ReadStakingDataMethod build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataMethod buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataMethod result = new com.github.iotexproject.grpc.api.ReadStakingDataMethod(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.method_ = method_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataMethod result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.method_ = method_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataMethod) {
@@ -565,7 +629,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataMethod
if (other.method_ != 0) {
setMethodValue(other.getMethodValue());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -580,38 +644,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataMethod parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- method_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataMethod) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private int method_ = 0;
/**
@@ -627,8 +672,8 @@ public Builder mergeFrom(
* @return This builder for chaining.
*/
public Builder setMethodValue(int value) {
+
method_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -638,7 +683,8 @@ public Builder setMethodValue(int value) {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name getMethod() {
- com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name result = com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name.forNumber(method_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name result = com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name.valueOf(method_);
return result == null ? com.github.iotexproject.grpc.api.ReadStakingDataMethod.Name.UNRECOGNIZED : result;
}
/**
@@ -650,7 +696,7 @@ public Builder setMethod(com.github.iotexproject.grpc.api.ReadStakingDataMethod.
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
+
method_ = value.getNumber();
onChanged();
return this;
@@ -660,11 +706,23 @@ public Builder setMethod(com.github.iotexproject.grpc.api.ReadStakingDataMethod.
* @return This builder for chaining.
*/
public Builder clearMethod() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
method_ = 0;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataMethod)
}
@@ -686,18 +744,7 @@ public ReadStakingDataMethod parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadStakingDataMethod(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethodOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethodOrBuilder.java
index 6fcf9e3..caaca83 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethodOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataMethodOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/read_state.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequest.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequest.java
index 11f5a00..226a42a 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/read_state.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,213 @@
* Protobuf type {@code iotexapi.ReadStakingDataRequest}
*/
public final class ReadStakingDataRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest)
ReadStakingDataRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadStakingDataRequest.class.getName());
- }
// Use ReadStakingDataRequest.newBuilder() to construct.
- private ReadStakingDataRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadStakingDataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadStakingDataRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadStakingDataRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadStakingDataRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.Builder subBuilder = null;
+ if (requestCase_ == 1) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 1;
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.Builder subBuilder = null;
+ if (requestCase_ == 2) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 2;
+ break;
+ }
+ case 26: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.Builder subBuilder = null;
+ if (requestCase_ == 3) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 3;
+ break;
+ }
+ case 34: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.Builder subBuilder = null;
+ if (requestCase_ == 4) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 4;
+ break;
+ }
+ case 42: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.Builder subBuilder = null;
+ if (requestCase_ == 5) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 5;
+ break;
+ }
+ case 50: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes.Builder subBuilder = null;
+ if (requestCase_ == 6) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 6;
+ break;
+ }
+ case 58: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.Builder subBuilder = null;
+ if (requestCase_ == 7) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 7;
+ break;
+ }
+ case 66: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.Builder subBuilder = null;
+ if (requestCase_ == 8) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 8;
+ break;
+ }
+ case 74: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.Builder subBuilder = null;
+ if (requestCase_ == 9) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 9;
+ break;
+ }
+ case 82: {
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.Builder subBuilder = null;
+ if (requestCase_ == 10) {
+ subBuilder = ((com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes) request_).toBuilder();
+ }
+ request_ =
+ input.readMessage(com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes) request_);
+ request_ = subBuilder.buildPartial();
+ }
+ requestCase_ = 10;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -65,40 +243,92 @@ public interface VoteBucketsOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBuckets}
*/
public static final class VoteBuckets extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.VoteBuckets)
VoteBucketsOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- VoteBuckets.class.getName());
- }
// Use VoteBuckets.newBuilder() to construct.
- private VoteBuckets(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private VoteBuckets(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VoteBuckets() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new VoteBuckets();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private VoteBuckets(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.PaginationParam.Builder subBuilder = null;
+ if (pagination_ != null) {
+ subBuilder = pagination_.toBuilder();
+ }
+ pagination_ = input.readMessage(com.github.iotexproject.grpc.api.PaginationParam.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(pagination_);
+ pagination_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.class, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.Builder.class);
}
- private int bitField0_;
public static final int PAGINATION_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.api.PaginationParam pagination_;
/**
@@ -107,7 +337,7 @@ private VoteBuckets() {
*/
@java.lang.Override
public boolean hasPagination() {
- return ((bitField0_ & 0x00000001) != 0);
+ return pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 1;
@@ -122,7 +352,7 @@ public com.github.iotexproject.grpc.api.PaginationParam getPagination() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOrBuilder() {
- return pagination_ == null ? com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance() : pagination_;
+ return getPagination();
}
private byte memoizedIsInitialized = -1;
@@ -139,10 +369,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
output.writeMessage(1, getPagination());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -151,11 +381,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPagination());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -175,7 +405,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -190,7 +420,7 @@ public int hashCode() {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -229,41 +459,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucket
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -283,7 +511,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -291,7 +519,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBuckets}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.VoteBuckets)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -300,7 +528,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -313,23 +541,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getPaginationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
return this;
@@ -358,23 +585,47 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets build
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (paginationBuilder_ == null) {
+ result.pagination_ = pagination_;
+ } else {
+ result.pagination_ = paginationBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.pagination_ = paginationBuilder_ == null
- ? pagination_
- : paginationBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets) {
@@ -390,7 +641,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -405,50 +656,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getPaginationFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.api.PaginationParam pagination_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder> paginationBuilder_;
/**
* .iotexapi.PaginationParam pagination = 1;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
- return ((bitField0_ & 0x00000001) != 0);
+ return paginationBuilder_ != null || pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 1;
@@ -470,11 +700,11 @@ public Builder setPagination(com.github.iotexproject.grpc.api.PaginationParam va
throw new NullPointerException();
}
pagination_ = value;
+ onChanged();
} else {
paginationBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -484,11 +714,11 @@ public Builder setPagination(
com.github.iotexproject.grpc.api.PaginationParam.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
+ onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -496,40 +726,38 @@ public Builder setPagination(
*/
public Builder mergePagination(com.github.iotexproject.grpc.api.PaginationParam value) {
if (paginationBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- pagination_ != null &&
- pagination_ != com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance()) {
- getPaginationBuilder().mergeFrom(value);
+ if (pagination_ != null) {
+ pagination_ =
+ com.github.iotexproject.grpc.api.PaginationParam.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
+ onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
- if (pagination_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 1;
*/
public Builder clearPagination() {
- bitField0_ = (bitField0_ & ~0x00000001);
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ onChanged();
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 1;
*/
public com.github.iotexproject.grpc.api.PaginationParam.Builder getPaginationBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
@@ -547,11 +775,11 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
/**
* .iotexapi.PaginationParam pagination = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
- paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>(
getPagination(),
getParentForChildren(),
@@ -560,6 +788,18 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
}
return paginationBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.VoteBuckets)
}
@@ -581,18 +821,7 @@ public VoteBuckets parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new VoteBuckets(input, extensionRegistry);
}
};
@@ -647,44 +876,101 @@ public interface VoteBucketsByVoterOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBucketsByVoter}
*/
public static final class VoteBucketsByVoter extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.VoteBucketsByVoter)
VoteBucketsByVoterOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- VoteBucketsByVoter.class.getName());
- }
// Use VoteBucketsByVoter.newBuilder() to construct.
- private VoteBucketsByVoter(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private VoteBucketsByVoter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VoteBucketsByVoter() {
voterAddress_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new VoteBucketsByVoter();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private VoteBucketsByVoter(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ voterAddress_ = s;
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.api.PaginationParam.Builder subBuilder = null;
+ if (pagination_ != null) {
+ subBuilder = pagination_.toBuilder();
+ }
+ pagination_ = input.readMessage(com.github.iotexproject.grpc.api.PaginationParam.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(pagination_);
+ pagination_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.class, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.Builder.class);
}
- private int bitField0_;
public static final int VOTERADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object voterAddress_ = "";
+ private volatile java.lang.Object voterAddress_;
/**
* string voterAddress = 1;
* @return The voterAddress.
@@ -729,7 +1015,7 @@ public java.lang.String getVoterAddress() {
*/
@java.lang.Override
public boolean hasPagination() {
- return ((bitField0_ & 0x00000001) != 0);
+ return pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 2;
@@ -744,7 +1030,7 @@ public com.github.iotexproject.grpc.api.PaginationParam getPagination() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOrBuilder() {
- return pagination_ == null ? com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance() : pagination_;
+ return getPagination();
}
private byte memoizedIsInitialized = -1;
@@ -761,13 +1047,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voterAddress_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, voterAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voterAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, voterAddress_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -776,14 +1062,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voterAddress_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, voterAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voterAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, voterAddress_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -805,7 +1091,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -822,7 +1108,7 @@ public int hashCode() {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -861,41 +1147,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucket
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -915,7 +1199,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -923,7 +1207,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBucketsByVoter}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.VoteBucketsByVoter)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -932,7 +1216,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -945,24 +1229,24 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getPaginationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
voterAddress_ = "";
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
return this;
@@ -991,26 +1275,48 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVote
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.voterAddress_ = voterAddress_;
+ if (paginationBuilder_ == null) {
+ result.pagination_ = pagination_;
+ } else {
+ result.pagination_ = paginationBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.voterAddress_ = voterAddress_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.pagination_ = paginationBuilder_ == null
- ? pagination_
- : paginationBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter) {
@@ -1025,13 +1331,12 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (other == com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.getDefaultInstance()) return this;
if (!other.getVoterAddress().isEmpty()) {
voterAddress_ = other.voterAddress_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1046,45 +1351,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- voterAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getPaginationFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object voterAddress_ = "";
/**
@@ -1127,9 +1406,11 @@ public java.lang.String getVoterAddress() {
*/
public Builder setVoterAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
voterAddress_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1138,8 +1419,8 @@ public Builder setVoterAddress(
* @return This builder for chaining.
*/
public Builder clearVoterAddress() {
+
voterAddress_ = getDefaultInstance().getVoterAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1150,23 +1431,25 @@ public Builder clearVoterAddress() {
*/
public Builder setVoterAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
voterAddress_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.github.iotexproject.grpc.api.PaginationParam pagination_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder> paginationBuilder_;
/**
* .iotexapi.PaginationParam pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
- return ((bitField0_ & 0x00000002) != 0);
+ return paginationBuilder_ != null || pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 2;
@@ -1188,11 +1471,11 @@ public Builder setPagination(com.github.iotexproject.grpc.api.PaginationParam va
throw new NullPointerException();
}
pagination_ = value;
+ onChanged();
} else {
paginationBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -1202,11 +1485,11 @@ public Builder setPagination(
com.github.iotexproject.grpc.api.PaginationParam.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
+ onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -1214,40 +1497,38 @@ public Builder setPagination(
*/
public Builder mergePagination(com.github.iotexproject.grpc.api.PaginationParam value) {
if (paginationBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- pagination_ != null &&
- pagination_ != com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance()) {
- getPaginationBuilder().mergeFrom(value);
+ if (pagination_ != null) {
+ pagination_ =
+ com.github.iotexproject.grpc.api.PaginationParam.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
+ onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
- if (pagination_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 2;
*/
public Builder clearPagination() {
- bitField0_ = (bitField0_ & ~0x00000002);
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ onChanged();
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 2;
*/
public com.github.iotexproject.grpc.api.PaginationParam.Builder getPaginationBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
@@ -1265,11 +1546,11 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
/**
* .iotexapi.PaginationParam pagination = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
- paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>(
getPagination(),
getParentForChildren(),
@@ -1278,6 +1559,18 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
}
return paginationBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.VoteBucketsByVoter)
}
@@ -1299,18 +1592,7 @@ public VoteBucketsByVoter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new VoteBucketsByVoter(input, extensionRegistry);
}
};
@@ -1365,44 +1647,101 @@ public interface VoteBucketsByCandidateOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBucketsByCandidate}
*/
public static final class VoteBucketsByCandidate extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.VoteBucketsByCandidate)
VoteBucketsByCandidateOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- VoteBucketsByCandidate.class.getName());
- }
// Use VoteBucketsByCandidate.newBuilder() to construct.
- private VoteBucketsByCandidate(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private VoteBucketsByCandidate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VoteBucketsByCandidate() {
candName_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new VoteBucketsByCandidate();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private VoteBucketsByCandidate(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ candName_ = s;
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.api.PaginationParam.Builder subBuilder = null;
+ if (pagination_ != null) {
+ subBuilder = pagination_.toBuilder();
+ }
+ pagination_ = input.readMessage(com.github.iotexproject.grpc.api.PaginationParam.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(pagination_);
+ pagination_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.class, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.Builder.class);
}
- private int bitField0_;
public static final int CANDNAME_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object candName_ = "";
+ private volatile java.lang.Object candName_;
/**
* string candName = 1;
* @return The candName.
@@ -1447,7 +1786,7 @@ public java.lang.String getCandName() {
*/
@java.lang.Override
public boolean hasPagination() {
- return ((bitField0_ & 0x00000001) != 0);
+ return pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 2;
@@ -1462,7 +1801,7 @@ public com.github.iotexproject.grpc.api.PaginationParam getPagination() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOrBuilder() {
- return pagination_ == null ? com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance() : pagination_;
+ return getPagination();
}
private byte memoizedIsInitialized = -1;
@@ -1479,13 +1818,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candName_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, candName_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(candName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, candName_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1494,14 +1833,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candName_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, candName_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(candName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, candName_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1523,7 +1862,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1540,7 +1879,7 @@ public int hashCode() {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1579,41 +1918,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucket
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1633,7 +1970,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1641,7 +1978,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBucketsByCandidate}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.VoteBucketsByCandidate)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1650,7 +1987,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1663,24 +2000,24 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getPaginationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
candName_ = "";
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
return this;
@@ -1709,26 +2046,48 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCand
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.candName_ = candName_;
+ if (paginationBuilder_ == null) {
+ result.pagination_ = pagination_;
+ } else {
+ result.pagination_ = paginationBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.candName_ = candName_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.pagination_ = paginationBuilder_ == null
- ? pagination_
- : paginationBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate) {
@@ -1743,13 +2102,12 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (other == com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.getDefaultInstance()) return this;
if (!other.getCandName().isEmpty()) {
candName_ = other.candName_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1764,45 +2122,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- candName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getPaginationFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object candName_ = "";
/**
@@ -1845,9 +2177,11 @@ public java.lang.String getCandName() {
*/
public Builder setCandName(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
candName_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1856,8 +2190,8 @@ public Builder setCandName(
* @return This builder for chaining.
*/
public Builder clearCandName() {
+
candName_ = getDefaultInstance().getCandName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1868,23 +2202,25 @@ public Builder clearCandName() {
*/
public Builder setCandNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
candName_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.github.iotexproject.grpc.api.PaginationParam pagination_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder> paginationBuilder_;
/**
* .iotexapi.PaginationParam pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
- return ((bitField0_ & 0x00000002) != 0);
+ return paginationBuilder_ != null || pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 2;
@@ -1906,11 +2242,11 @@ public Builder setPagination(com.github.iotexproject.grpc.api.PaginationParam va
throw new NullPointerException();
}
pagination_ = value;
+ onChanged();
} else {
paginationBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -1920,11 +2256,11 @@ public Builder setPagination(
com.github.iotexproject.grpc.api.PaginationParam.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
+ onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -1932,40 +2268,38 @@ public Builder setPagination(
*/
public Builder mergePagination(com.github.iotexproject.grpc.api.PaginationParam value) {
if (paginationBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- pagination_ != null &&
- pagination_ != com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance()) {
- getPaginationBuilder().mergeFrom(value);
+ if (pagination_ != null) {
+ pagination_ =
+ com.github.iotexproject.grpc.api.PaginationParam.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
+ onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
- if (pagination_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 2;
*/
public Builder clearPagination() {
- bitField0_ = (bitField0_ & ~0x00000002);
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ onChanged();
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 2;
*/
public com.github.iotexproject.grpc.api.PaginationParam.Builder getPaginationBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
@@ -1983,11 +2317,11 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
/**
* .iotexapi.PaginationParam pagination = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
- paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>(
getPagination(),
getParentForChildren(),
@@ -1996,6 +2330,18 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
}
return paginationBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.VoteBucketsByCandidate)
}
@@ -2017,18 +2363,7 @@ public VoteBucketsByCandidate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new VoteBucketsByCandidate(input, extensionRegistry);
}
};
@@ -2071,40 +2406,92 @@ public interface CandidatesOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.Candidates}
*/
public static final class Candidates extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.Candidates)
CandidatesOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Candidates.class.getName());
- }
// Use Candidates.newBuilder() to construct.
- private Candidates(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private Candidates(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Candidates() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Candidates();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Candidates(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.PaginationParam.Builder subBuilder = null;
+ if (pagination_ != null) {
+ subBuilder = pagination_.toBuilder();
+ }
+ pagination_ = input.readMessage(com.github.iotexproject.grpc.api.PaginationParam.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(pagination_);
+ pagination_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_Candidates_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_Candidates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.class, com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.Builder.class);
}
- private int bitField0_;
public static final int PAGINATION_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.api.PaginationParam pagination_;
/**
@@ -2113,7 +2500,7 @@ private Candidates() {
*/
@java.lang.Override
public boolean hasPagination() {
- return ((bitField0_ & 0x00000001) != 0);
+ return pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 1;
@@ -2128,7 +2515,7 @@ public com.github.iotexproject.grpc.api.PaginationParam getPagination() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOrBuilder() {
- return pagination_ == null ? com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance() : pagination_;
+ return getPagination();
}
private byte memoizedIsInitialized = -1;
@@ -2145,10 +2532,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
output.writeMessage(1, getPagination());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -2157,11 +2544,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPagination());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -2181,7 +2568,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2196,7 +2583,7 @@ public int hashCode() {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2235,41 +2622,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2289,7 +2674,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2297,7 +2682,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.Candidates}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.Candidates)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidatesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2306,7 +2691,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_Candidates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2319,23 +2704,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getPaginationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
return this;
@@ -2364,23 +2748,47 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates build(
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (paginationBuilder_ == null) {
+ result.pagination_ = pagination_;
+ } else {
+ result.pagination_ = paginationBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.pagination_ = paginationBuilder_ == null
- ? pagination_
- : paginationBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates) {
@@ -2396,7 +2804,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -2411,50 +2819,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getPaginationFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.api.PaginationParam pagination_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder> paginationBuilder_;
/**
* .iotexapi.PaginationParam pagination = 1;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
- return ((bitField0_ & 0x00000001) != 0);
+ return paginationBuilder_ != null || pagination_ != null;
}
/**
* .iotexapi.PaginationParam pagination = 1;
@@ -2476,11 +2863,11 @@ public Builder setPagination(com.github.iotexproject.grpc.api.PaginationParam va
throw new NullPointerException();
}
pagination_ = value;
+ onChanged();
} else {
paginationBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -2490,11 +2877,11 @@ public Builder setPagination(
com.github.iotexproject.grpc.api.PaginationParam.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
+ onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -2502,40 +2889,38 @@ public Builder setPagination(
*/
public Builder mergePagination(com.github.iotexproject.grpc.api.PaginationParam value) {
if (paginationBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- pagination_ != null &&
- pagination_ != com.github.iotexproject.grpc.api.PaginationParam.getDefaultInstance()) {
- getPaginationBuilder().mergeFrom(value);
+ if (pagination_ != null) {
+ pagination_ =
+ com.github.iotexproject.grpc.api.PaginationParam.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
+ onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
- if (pagination_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 1;
*/
public Builder clearPagination() {
- bitField0_ = (bitField0_ & ~0x00000001);
- pagination_ = null;
- if (paginationBuilder_ != null) {
- paginationBuilder_.dispose();
+ if (paginationBuilder_ == null) {
+ pagination_ = null;
+ onChanged();
+ } else {
+ pagination_ = null;
paginationBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.PaginationParam pagination = 1;
*/
public com.github.iotexproject.grpc.api.PaginationParam.Builder getPaginationBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
@@ -2553,11 +2938,11 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
/**
* .iotexapi.PaginationParam pagination = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
- paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.PaginationParam, com.github.iotexproject.grpc.api.PaginationParam.Builder, com.github.iotexproject.grpc.api.PaginationParamOrBuilder>(
getPagination(),
getParentForChildren(),
@@ -2566,6 +2951,18 @@ public com.github.iotexproject.grpc.api.PaginationParamOrBuilder getPaginationOr
}
return paginationBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.Candidates)
}
@@ -2587,18 +2984,7 @@ public Candidates parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Candidates(input, extensionRegistry);
}
};
@@ -2638,34 +3024,80 @@ public interface CandidateByNameOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.CandidateByName}
*/
public static final class CandidateByName extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.CandidateByName)
CandidateByNameOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- CandidateByName.class.getName());
- }
// Use CandidateByName.newBuilder() to construct.
- private CandidateByName(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private CandidateByName(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CandidateByName() {
candName_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CandidateByName();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CandidateByName(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ candName_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2673,8 +3105,7 @@ private CandidateByName() {
}
public static final int CANDNAME_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object candName_ = "";
+ private volatile java.lang.Object candName_;
/**
* string candName = 1;
* @return The candName.
@@ -2725,10 +3156,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candName_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, candName_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(candName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, candName_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -2737,10 +3168,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candName_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, candName_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(candName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, candName_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -2757,7 +3188,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getCandName()
.equals(other.getCandName())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2770,7 +3201,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CANDNAME_FIELD_NUMBER;
hash = (53 * hash) + getCandName().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2809,41 +3240,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateB
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2863,7 +3292,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2871,7 +3300,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.CandidateByName}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.CandidateByName)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByNameOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2880,7 +3309,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2889,19 +3318,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
candName_ = "";
+
return this;
}
@@ -2928,18 +3362,43 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName b
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.candName_ = candName_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.candName_ = candName_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName) {
@@ -2954,10 +3413,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (other == com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.getDefaultInstance()) return this;
if (!other.getCandName().isEmpty()) {
candName_ = other.candName_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -2972,38 +3430,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- candName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object candName_ = "";
/**
@@ -3046,9 +3485,11 @@ public java.lang.String getCandName() {
*/
public Builder setCandName(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
candName_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3057,8 +3498,8 @@ public Builder setCandName(
* @return This builder for chaining.
*/
public Builder clearCandName() {
+
candName_ = getDefaultInstance().getCandName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -3069,13 +3510,27 @@ public Builder clearCandName() {
*/
public Builder setCandNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
candName_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.CandidateByName)
}
@@ -3097,18 +3552,7 @@ public CandidateByName parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new CandidateByName(input, extensionRegistry);
}
};
@@ -3153,34 +3597,99 @@ public interface VoteBucketsByIndexesOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBucketsByIndexes}
*/
public static final class VoteBucketsByIndexes extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.VoteBucketsByIndexes)
VoteBucketsByIndexesOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- VoteBucketsByIndexes.class.getName());
- }
// Use VoteBucketsByIndexes.newBuilder() to construct.
- private VoteBucketsByIndexes(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private VoteBucketsByIndexes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VoteBucketsByIndexes() {
index_ = emptyLongList();
}
-
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new VoteBucketsByIndexes();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private VoteBucketsByIndexes(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ index_ = newLongList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ index_.addLong(input.readUInt64());
+ break;
+ }
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ index_ = newLongList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ index_.addLong(input.readUInt64());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ index_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3188,9 +3697,7 @@ private VoteBucketsByIndexes() {
}
public static final int INDEX_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.LongList index_ =
- emptyLongList();
+ private com.google.protobuf.Internal.LongList index_;
/**
* repeated uint64 index = 1;
* @return A list containing the index.
@@ -3239,7 +3746,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < index_.size(); i++) {
output.writeUInt64NoTag(index_.getLong(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -3262,7 +3769,7 @@ public int getSerializedSize() {
}
indexMemoizedSerializedSize = dataSize;
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -3279,7 +3786,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getIndexList()
.equals(other.getIndexList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -3294,7 +3801,7 @@ public int hashCode() {
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndexList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -3333,41 +3840,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucket
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3387,7 +3892,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3395,7 +3900,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.VoteBucketsByIndexes}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.VoteBucketsByIndexes)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -3404,7 +3909,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3413,19 +3918,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
index_ = emptyLongList();
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -3452,19 +3962,48 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByInde
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
index_.makeImmutable();
- result.index_ = index_;
+ bitField0_ = (bitField0_ & ~0x00000001);
}
+ result.index_ = index_;
+ onBuilt();
+ return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes) {
@@ -3480,15 +4019,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (!other.index_.isEmpty()) {
if (index_.isEmpty()) {
index_ = other.index_;
- index_.makeImmutable();
- bitField0_ |= 0x00000001;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIndexIsMutable();
index_.addAll(other.index_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -3503,56 +4041,27 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- long v = input.readUInt64();
- ensureIndexIsMutable();
- index_.addLong(v);
- break;
- } // case 8
- case 10: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- ensureIndexIsMutable();
- while (input.getBytesUntilLimit() > 0) {
- index_.addLong(input.readUInt64());
- }
- input.popLimit(limit);
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.LongList index_ = emptyLongList();
private void ensureIndexIsMutable() {
- if (!index_.isModifiable()) {
- index_ = makeMutableCopy(index_);
- }
- bitField0_ |= 0x00000001;
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ index_ = mutableCopy(index_);
+ bitField0_ |= 0x00000001;
+ }
}
/**
* repeated uint64 index = 1;
@@ -3560,8 +4069,8 @@ private void ensureIndexIsMutable() {
*/
public java.util.List
getIndexList() {
- index_.makeImmutable();
- return index_;
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(index_) : index_;
}
/**
* repeated uint64 index = 1;
@@ -3586,10 +4095,8 @@ public long getIndex(int index) {
*/
public Builder setIndex(
int index, long value) {
-
ensureIndexIsMutable();
index_.setLong(index, value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3599,10 +4106,8 @@ public Builder setIndex(
* @return This builder for chaining.
*/
public Builder addIndex(long value) {
-
ensureIndexIsMutable();
index_.addLong(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3616,7 +4121,6 @@ public Builder addAllIndex(
ensureIndexIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, index_);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3630,6 +4134,18 @@ public Builder clearIndex() {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.VoteBucketsByIndexes)
}
@@ -3651,18 +4167,7 @@ public VoteBucketsByIndexes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new VoteBucketsByIndexes(input, extensionRegistry);
}
};
@@ -3714,21 +4219,12 @@ public interface CandidateByAddressOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.CandidateByAddress}
*/
public static final class CandidateByAddress extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.CandidateByAddress)
CandidateByAddressOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- CandidateByAddress.class.getName());
- }
// Use CandidateByAddress.newBuilder() to construct.
- private CandidateByAddress(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private CandidateByAddress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CandidateByAddress() {
@@ -3736,13 +4232,74 @@ private CandidateByAddress() {
id_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CandidateByAddress();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CandidateByAddress(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ ownerAddr_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ id_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3750,8 +4307,7 @@ private CandidateByAddress() {
}
public static final int OWNERADDR_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object ownerAddr_ = "";
+ private volatile java.lang.Object ownerAddr_;
/**
* string ownerAddr = 1;
* @return The ownerAddr.
@@ -3789,8 +4345,7 @@ public java.lang.String getOwnerAddr() {
}
public static final int ID_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object id_ = "";
+ private volatile java.lang.Object id_;
/**
* string id = 2;
* @return The id.
@@ -3841,13 +4396,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerAddr_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, ownerAddr_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerAddr_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ownerAddr_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, id_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -3856,13 +4411,13 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerAddr_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ownerAddr_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerAddr_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ownerAddr_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -3881,7 +4436,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getOwnerAddr())) return false;
if (!getId()
.equals(other.getId())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -3896,7 +4451,7 @@ public int hashCode() {
hash = (53 * hash) + getOwnerAddr().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -3935,41 +4490,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateB
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3989,7 +4542,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3997,7 +4550,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.CandidateByAddress}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.CandidateByAddress)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4006,7 +4559,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4015,20 +4568,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
ownerAddr_ = "";
+
id_ = "";
+
return this;
}
@@ -4055,21 +4614,44 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddres
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.ownerAddr_ = ownerAddr_;
+ result.id_ = id_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.ownerAddr_ = ownerAddr_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.id_ = id_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress) {
@@ -4084,15 +4666,13 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (other == com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.getDefaultInstance()) return this;
if (!other.getOwnerAddr().isEmpty()) {
ownerAddr_ = other.ownerAddr_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
- bitField0_ |= 0x00000002;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -4107,43 +4687,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- ownerAddr_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- id_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object ownerAddr_ = "";
/**
@@ -4186,9 +4742,11 @@ public java.lang.String getOwnerAddr() {
*/
public Builder setOwnerAddr(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
ownerAddr_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4197,8 +4755,8 @@ public Builder setOwnerAddr(
* @return This builder for chaining.
*/
public Builder clearOwnerAddr() {
+
ownerAddr_ = getDefaultInstance().getOwnerAddr();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -4209,10 +4767,12 @@ public Builder clearOwnerAddr() {
*/
public Builder setOwnerAddrBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
ownerAddr_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4258,9 +4818,11 @@ public java.lang.String getId() {
*/
public Builder setId(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
id_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4269,8 +4831,8 @@ public Builder setId(
* @return This builder for chaining.
*/
public Builder clearId() {
+
id_ = getDefaultInstance().getId();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -4281,13 +4843,27 @@ public Builder clearId() {
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
id_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.CandidateByAddress)
}
@@ -4309,18 +4885,7 @@ public CandidateByAddress parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new CandidateByAddress(input, extensionRegistry);
}
};
@@ -4348,33 +4913,73 @@ public interface TotalStakingAmountOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.TotalStakingAmount}
*/
public static final class TotalStakingAmount extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.TotalStakingAmount)
TotalStakingAmountOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- TotalStakingAmount.class.getName());
- }
// Use TotalStakingAmount.newBuilder() to construct.
- private TotalStakingAmount(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private TotalStakingAmount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TotalStakingAmount() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TotalStakingAmount();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TotalStakingAmount(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4395,7 +5000,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -4404,7 +5009,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -4419,7 +5024,7 @@ public boolean equals(final java.lang.Object obj) {
}
com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount other = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount) obj;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -4430,7 +5035,7 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -4469,41 +5074,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStaki
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4523,7 +5126,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4531,7 +5134,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.TotalStakingAmount}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.TotalStakingAmount)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4540,7 +5143,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4549,13 +5152,18 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
@@ -4590,6 +5198,38 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmoun
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount) {
@@ -4602,7 +5242,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount other) {
if (other == com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -4617,32 +5257,31 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.TotalStakingAmount)
}
@@ -4664,18 +5303,7 @@ public TotalStakingAmount parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new TotalStakingAmount(input, extensionRegistry);
}
};
@@ -4703,33 +5331,73 @@ public interface BucketsCountOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.BucketsCount}
*/
public static final class BucketsCount extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.BucketsCount)
BucketsCountOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- BucketsCount.class.getName());
- }
// Use BucketsCount.newBuilder() to construct.
- private BucketsCount(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private BucketsCount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BucketsCount() {
}
-
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BucketsCount();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BucketsCount(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4750,7 +5418,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -4759,7 +5427,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -4774,7 +5442,7 @@ public boolean equals(final java.lang.Object obj) {
}
com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount other = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount) obj;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -4785,7 +5453,7 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -4824,41 +5492,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCou
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4878,7 +5544,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4886,7 +5552,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.BucketsCount}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.BucketsCount)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4895,7 +5561,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4904,13 +5570,18 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
@@ -4945,6 +5616,38 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount buil
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount) {
@@ -4957,7 +5660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount other) {
if (other == com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -4972,32 +5675,31 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.BucketsCount)
}
@@ -5019,18 +5721,7 @@ public BucketsCount parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new BucketsCount(input, extensionRegistry);
}
};
@@ -5070,34 +5761,80 @@ public interface ContractStakingBucketTypesOrBuilder extends
* Protobuf type {@code iotexapi.ReadStakingDataRequest.ContractStakingBucketTypes}
*/
public static final class ContractStakingBucketTypes extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStakingDataRequest.ContractStakingBucketTypes)
ContractStakingBucketTypesOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ContractStakingBucketTypes.class.getName());
- }
// Use ContractStakingBucketTypes.newBuilder() to construct.
- private ContractStakingBucketTypes(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ContractStakingBucketTypes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContractStakingBucketTypes() {
contractAddress_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ContractStakingBucketTypes();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ContractStakingBucketTypes(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ contractAddress_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5105,8 +5842,7 @@ private ContractStakingBucketTypes() {
}
public static final int CONTRACTADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object contractAddress_ = "";
+ private volatile java.lang.Object contractAddress_;
/**
* string contractAddress = 1;
* @return The contractAddress.
@@ -5157,10 +5893,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contractAddress_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, contractAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contractAddress_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -5169,10 +5905,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contractAddress_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contractAddress_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contractAddress_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -5189,7 +5925,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getContractAddress()
.equals(other.getContractAddress())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -5202,7 +5938,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getContractAddress().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -5241,41 +5977,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractSt
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -5295,7 +6029,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -5303,7 +6037,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest.ContractStakingBucketTypes}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest.ContractStakingBucketTypes)
com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -5312,7 +6046,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5321,19 +6055,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
contractAddress_ = "";
+
return this;
}
@@ -5360,18 +6099,43 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBu
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.contractAddress_ = contractAddress_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.contractAddress_ = contractAddress_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes) {
@@ -5386,10 +6150,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
if (other == com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.getDefaultInstance()) return this;
if (!other.getContractAddress().isEmpty()) {
contractAddress_ = other.contractAddress_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -5404,38 +6167,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- contractAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object contractAddress_ = "";
/**
@@ -5478,9 +6222,11 @@ public java.lang.String getContractAddress() {
*/
public Builder setContractAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
contractAddress_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5489,8 +6235,8 @@ public Builder setContractAddress(
* @return This builder for chaining.
*/
public Builder clearContractAddress() {
+
contractAddress_ = getDefaultInstance().getContractAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -5501,13 +6247,27 @@ public Builder clearContractAddress() {
*/
public Builder setContractAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
contractAddress_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest.ContractStakingBucketTypes)
}
@@ -5529,18 +6289,7 @@ public ContractStakingBucketTypes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ContractStakingBucketTypes(input, extensionRegistry);
}
};
@@ -5561,7 +6310,6 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBu
}
private int requestCase_ = 0;
- @SuppressWarnings("serial")
private java.lang.Object request_;
public enum RequestCase
implements com.google.protobuf.Internal.EnumLite,
@@ -5972,7 +6720,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (requestCase_ == 10) {
output.writeMessage(10, (com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes) request_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -6021,7 +6769,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes) request_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -6081,7 +6829,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -6136,7 +6884,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -6175,41 +6923,39 @@ public static com.github.iotexproject.grpc.api.ReadStakingDataRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStakingDataRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -6229,7 +6975,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6237,7 +6983,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStakingDataRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStakingDataRequest)
com.github.iotexproject.grpc.api.ReadStakingDataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -6246,7 +6992,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.ReadState.internal_static_iotexapi_ReadStakingDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6255,48 +7001,22 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStakingDataRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- if (bucketsBuilder_ != null) {
- bucketsBuilder_.clear();
- }
- if (bucketsByVoterBuilder_ != null) {
- bucketsByVoterBuilder_.clear();
- }
- if (bucketsByCandidateBuilder_ != null) {
- bucketsByCandidateBuilder_.clear();
- }
- if (candidatesBuilder_ != null) {
- candidatesBuilder_.clear();
- }
- if (candidateByNameBuilder_ != null) {
- candidateByNameBuilder_.clear();
- }
- if (bucketsByIndexesBuilder_ != null) {
- bucketsByIndexesBuilder_.clear();
- }
- if (candidateByAddressBuilder_ != null) {
- candidateByAddressBuilder_.clear();
- }
- if (totalStakingAmountBuilder_ != null) {
- totalStakingAmountBuilder_.clear();
- }
- if (bucketsCountBuilder_ != null) {
- bucketsCountBuilder_.clear();
- }
- if (contractStakingBucketTypesBuilder_ != null) {
- contractStakingBucketTypesBuilder_.clear();
- }
requestCase_ = 0;
request_ = null;
return this;
@@ -6325,61 +7045,113 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStakingDataRequest buildPartial() {
com.github.iotexproject.grpc.api.ReadStakingDataRequest result = new com.github.iotexproject.grpc.api.ReadStakingDataRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStakingDataRequest result) {
- int from_bitField0_ = bitField0_;
- }
-
- private void buildPartialOneofs(com.github.iotexproject.grpc.api.ReadStakingDataRequest result) {
- result.requestCase_ = requestCase_;
- result.request_ = this.request_;
- if (requestCase_ == 1 &&
- bucketsBuilder_ != null) {
- result.request_ = bucketsBuilder_.build();
+ if (requestCase_ == 1) {
+ if (bucketsBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = bucketsBuilder_.build();
+ }
}
- if (requestCase_ == 2 &&
- bucketsByVoterBuilder_ != null) {
- result.request_ = bucketsByVoterBuilder_.build();
+ if (requestCase_ == 2) {
+ if (bucketsByVoterBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = bucketsByVoterBuilder_.build();
+ }
}
- if (requestCase_ == 3 &&
- bucketsByCandidateBuilder_ != null) {
- result.request_ = bucketsByCandidateBuilder_.build();
+ if (requestCase_ == 3) {
+ if (bucketsByCandidateBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = bucketsByCandidateBuilder_.build();
+ }
}
- if (requestCase_ == 4 &&
- candidatesBuilder_ != null) {
- result.request_ = candidatesBuilder_.build();
+ if (requestCase_ == 4) {
+ if (candidatesBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = candidatesBuilder_.build();
+ }
}
- if (requestCase_ == 5 &&
- candidateByNameBuilder_ != null) {
- result.request_ = candidateByNameBuilder_.build();
+ if (requestCase_ == 5) {
+ if (candidateByNameBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = candidateByNameBuilder_.build();
+ }
}
- if (requestCase_ == 6 &&
- bucketsByIndexesBuilder_ != null) {
- result.request_ = bucketsByIndexesBuilder_.build();
+ if (requestCase_ == 6) {
+ if (bucketsByIndexesBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = bucketsByIndexesBuilder_.build();
+ }
}
- if (requestCase_ == 7 &&
- candidateByAddressBuilder_ != null) {
- result.request_ = candidateByAddressBuilder_.build();
+ if (requestCase_ == 7) {
+ if (candidateByAddressBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = candidateByAddressBuilder_.build();
+ }
}
- if (requestCase_ == 8 &&
- totalStakingAmountBuilder_ != null) {
- result.request_ = totalStakingAmountBuilder_.build();
+ if (requestCase_ == 8) {
+ if (totalStakingAmountBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = totalStakingAmountBuilder_.build();
+ }
}
- if (requestCase_ == 9 &&
- bucketsCountBuilder_ != null) {
- result.request_ = bucketsCountBuilder_.build();
+ if (requestCase_ == 9) {
+ if (bucketsCountBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = bucketsCountBuilder_.build();
+ }
}
- if (requestCase_ == 10 &&
- contractStakingBucketTypesBuilder_ != null) {
- result.request_ = contractStakingBucketTypesBuilder_.build();
+ if (requestCase_ == 10) {
+ if (contractStakingBucketTypesBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = contractStakingBucketTypesBuilder_.build();
+ }
}
+ result.requestCase_ = requestCase_;
+ onBuilt();
+ return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStakingDataRequest) {
@@ -6437,7 +7209,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStakingDataRequest
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -6452,100 +7224,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStakingDataRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getBucketsFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 1;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getBucketsByVoterFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 2;
- break;
- } // case 18
- case 26: {
- input.readMessage(
- getBucketsByCandidateFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 3;
- break;
- } // case 26
- case 34: {
- input.readMessage(
- getCandidatesFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 4;
- break;
- } // case 34
- case 42: {
- input.readMessage(
- getCandidateByNameFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 5;
- break;
- } // case 42
- case 50: {
- input.readMessage(
- getBucketsByIndexesFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 6;
- break;
- } // case 50
- case 58: {
- input.readMessage(
- getCandidateByAddressFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 7;
- break;
- } // case 58
- case 66: {
- input.readMessage(
- getTotalStakingAmountFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 8;
- break;
- } // case 66
- case 74: {
- input.readMessage(
- getBucketsCountFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 9;
- break;
- } // case 74
- case 82: {
- input.readMessage(
- getContractStakingBucketTypesFieldBuilder().getBuilder(),
- extensionRegistry);
- requestCase_ = 10;
- break;
- } // case 82
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStakingDataRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int requestCase_ = 0;
@@ -6563,9 +7252,8 @@ public Builder clearRequest() {
return this;
}
- private int bitField0_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsOrBuilder> bucketsBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.VoteBuckets buckets = 1;
@@ -6639,9 +7327,8 @@ public Builder mergeBuckets(com.github.iotexproject.grpc.api.ReadStakingDataRequ
} else {
if (requestCase_ == 1) {
bucketsBuilder_.mergeFrom(value);
- } else {
- bucketsBuilder_.setMessage(value);
}
+ bucketsBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
@@ -6688,14 +7375,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsOrBuil
/**
* .iotexapi.ReadStakingDataRequest.VoteBuckets buckets = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsOrBuilder>
getBucketsFieldBuilder() {
if (bucketsBuilder_ == null) {
if (!(requestCase_ == 1)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.getDefaultInstance();
}
- bucketsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ bucketsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBuckets) request_,
getParentForChildren(),
@@ -6703,11 +7390,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsOrBuil
request_ = null;
}
requestCase_ = 1;
- onChanged();
+ onChanged();;
return bucketsBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoterOrBuilder> bucketsByVoterBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.VoteBucketsByVoter bucketsByVoter = 2;
@@ -6781,9 +7468,8 @@ public Builder mergeBucketsByVoter(com.github.iotexproject.grpc.api.ReadStakingD
} else {
if (requestCase_ == 2) {
bucketsByVoterBuilder_.mergeFrom(value);
- } else {
- bucketsByVoterBuilder_.setMessage(value);
}
+ bucketsByVoterBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
@@ -6830,14 +7516,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVote
/**
* .iotexapi.ReadStakingDataRequest.VoteBucketsByVoter bucketsByVoter = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoterOrBuilder>
getBucketsByVoterFieldBuilder() {
if (bucketsByVoterBuilder_ == null) {
if (!(requestCase_ == 2)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.getDefaultInstance();
}
- bucketsByVoterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ bucketsByVoterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoterOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVoter) request_,
getParentForChildren(),
@@ -6845,11 +7531,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByVote
request_ = null;
}
requestCase_ = 2;
- onChanged();
+ onChanged();;
return bucketsByVoterBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidateOrBuilder> bucketsByCandidateBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.VoteBucketsByCandidate bucketsByCandidate = 3;
@@ -6923,9 +7609,8 @@ public Builder mergeBucketsByCandidate(com.github.iotexproject.grpc.api.ReadStak
} else {
if (requestCase_ == 3) {
bucketsByCandidateBuilder_.mergeFrom(value);
- } else {
- bucketsByCandidateBuilder_.setMessage(value);
}
+ bucketsByCandidateBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
@@ -6972,14 +7657,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCand
/**
* .iotexapi.ReadStakingDataRequest.VoteBucketsByCandidate bucketsByCandidate = 3;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidateOrBuilder>
getBucketsByCandidateFieldBuilder() {
if (bucketsByCandidateBuilder_ == null) {
if (!(requestCase_ == 3)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.getDefaultInstance();
}
- bucketsByCandidateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ bucketsByCandidateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidateOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCandidate) request_,
getParentForChildren(),
@@ -6987,11 +7672,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByCand
request_ = null;
}
requestCase_ = 3;
- onChanged();
+ onChanged();;
return bucketsByCandidateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates, com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidatesOrBuilder> candidatesBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.Candidates candidates = 4;
@@ -7065,9 +7750,8 @@ public Builder mergeCandidates(com.github.iotexproject.grpc.api.ReadStakingDataR
} else {
if (requestCase_ == 4) {
candidatesBuilder_.mergeFrom(value);
- } else {
- candidatesBuilder_.setMessage(value);
}
+ candidatesBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
@@ -7114,14 +7798,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidatesOrBuild
/**
* .iotexapi.ReadStakingDataRequest.Candidates candidates = 4;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates, com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidatesOrBuilder>
getCandidatesFieldBuilder() {
if (candidatesBuilder_ == null) {
if (!(requestCase_ == 4)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.getDefaultInstance();
}
- candidatesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates, com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidatesOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.Candidates) request_,
getParentForChildren(),
@@ -7129,11 +7813,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidatesOrBuild
request_ = null;
}
requestCase_ = 4;
- onChanged();
+ onChanged();;
return candidatesBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByNameOrBuilder> candidateByNameBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.CandidateByName candidateByName = 5;
@@ -7207,9 +7891,8 @@ public Builder mergeCandidateByName(com.github.iotexproject.grpc.api.ReadStaking
} else {
if (requestCase_ == 5) {
candidateByNameBuilder_.mergeFrom(value);
- } else {
- candidateByNameBuilder_.setMessage(value);
}
+ candidateByNameBuilder_.setMessage(value);
}
requestCase_ = 5;
return this;
@@ -7256,14 +7939,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByNameOr
/**
* .iotexapi.ReadStakingDataRequest.CandidateByName candidateByName = 5;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByNameOrBuilder>
getCandidateByNameFieldBuilder() {
if (candidateByNameBuilder_ == null) {
if (!(requestCase_ == 5)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.getDefaultInstance();
}
- candidateByNameBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateByNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByNameOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByName) request_,
getParentForChildren(),
@@ -7271,11 +7954,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByNameOr
request_ = null;
}
requestCase_ = 5;
- onChanged();
+ onChanged();;
return candidateByNameBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexesOrBuilder> bucketsByIndexesBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.VoteBucketsByIndexes bucketsByIndexes = 6;
@@ -7349,9 +8032,8 @@ public Builder mergeBucketsByIndexes(com.github.iotexproject.grpc.api.ReadStakin
} else {
if (requestCase_ == 6) {
bucketsByIndexesBuilder_.mergeFrom(value);
- } else {
- bucketsByIndexesBuilder_.setMessage(value);
}
+ bucketsByIndexesBuilder_.setMessage(value);
}
requestCase_ = 6;
return this;
@@ -7398,14 +8080,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByInde
/**
* .iotexapi.ReadStakingDataRequest.VoteBucketsByIndexes bucketsByIndexes = 6;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexesOrBuilder>
getBucketsByIndexesFieldBuilder() {
if (bucketsByIndexesBuilder_ == null) {
if (!(requestCase_ == 6)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes.getDefaultInstance();
}
- bucketsByIndexesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ bucketsByIndexesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexesOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByIndexes) request_,
getParentForChildren(),
@@ -7413,11 +8095,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.VoteBucketsByInde
request_ = null;
}
requestCase_ = 6;
- onChanged();
+ onChanged();;
return bucketsByIndexesBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddressOrBuilder> candidateByAddressBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.CandidateByAddress candidateByAddress = 7;
@@ -7491,9 +8173,8 @@ public Builder mergeCandidateByAddress(com.github.iotexproject.grpc.api.ReadStak
} else {
if (requestCase_ == 7) {
candidateByAddressBuilder_.mergeFrom(value);
- } else {
- candidateByAddressBuilder_.setMessage(value);
}
+ candidateByAddressBuilder_.setMessage(value);
}
requestCase_ = 7;
return this;
@@ -7540,14 +8221,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddres
/**
* .iotexapi.ReadStakingDataRequest.CandidateByAddress candidateByAddress = 7;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddressOrBuilder>
getCandidateByAddressFieldBuilder() {
if (candidateByAddressBuilder_ == null) {
if (!(requestCase_ == 7)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.getDefaultInstance();
}
- candidateByAddressBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateByAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddressOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddress) request_,
getParentForChildren(),
@@ -7555,11 +8236,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.CandidateByAddres
request_ = null;
}
requestCase_ = 7;
- onChanged();
+ onChanged();;
return candidateByAddressBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount, com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmountOrBuilder> totalStakingAmountBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.TotalStakingAmount totalStakingAmount = 8;
@@ -7633,9 +8314,8 @@ public Builder mergeTotalStakingAmount(com.github.iotexproject.grpc.api.ReadStak
} else {
if (requestCase_ == 8) {
totalStakingAmountBuilder_.mergeFrom(value);
- } else {
- totalStakingAmountBuilder_.setMessage(value);
}
+ totalStakingAmountBuilder_.setMessage(value);
}
requestCase_ = 8;
return this;
@@ -7682,14 +8362,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmoun
/**
* .iotexapi.ReadStakingDataRequest.TotalStakingAmount totalStakingAmount = 8;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount, com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmountOrBuilder>
getTotalStakingAmountFieldBuilder() {
if (totalStakingAmountBuilder_ == null) {
if (!(requestCase_ == 8)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.getDefaultInstance();
}
- totalStakingAmountBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ totalStakingAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount, com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmountOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmount) request_,
getParentForChildren(),
@@ -7697,11 +8377,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.TotalStakingAmoun
request_ = null;
}
requestCase_ = 8;
- onChanged();
+ onChanged();;
return totalStakingAmountBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount, com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCountOrBuilder> bucketsCountBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.BucketsCount bucketsCount = 9;
@@ -7775,9 +8455,8 @@ public Builder mergeBucketsCount(com.github.iotexproject.grpc.api.ReadStakingDat
} else {
if (requestCase_ == 9) {
bucketsCountBuilder_.mergeFrom(value);
- } else {
- bucketsCountBuilder_.setMessage(value);
}
+ bucketsCountBuilder_.setMessage(value);
}
requestCase_ = 9;
return this;
@@ -7824,14 +8503,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCountOrBui
/**
* .iotexapi.ReadStakingDataRequest.BucketsCount bucketsCount = 9;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount, com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCountOrBuilder>
getBucketsCountFieldBuilder() {
if (bucketsCountBuilder_ == null) {
if (!(requestCase_ == 9)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.getDefaultInstance();
}
- bucketsCountBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ bucketsCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount, com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCountOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCount) request_,
getParentForChildren(),
@@ -7839,11 +8518,11 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.BucketsCountOrBui
request_ = null;
}
requestCase_ = 9;
- onChanged();
+ onChanged();;
return bucketsCountBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes, com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypesOrBuilder> contractStakingBucketTypesBuilder_;
/**
* .iotexapi.ReadStakingDataRequest.ContractStakingBucketTypes contractStakingBucketTypes = 10;
@@ -7917,9 +8596,8 @@ public Builder mergeContractStakingBucketTypes(com.github.iotexproject.grpc.api.
} else {
if (requestCase_ == 10) {
contractStakingBucketTypesBuilder_.mergeFrom(value);
- } else {
- contractStakingBucketTypesBuilder_.setMessage(value);
}
+ contractStakingBucketTypesBuilder_.setMessage(value);
}
requestCase_ = 10;
return this;
@@ -7966,14 +8644,14 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBu
/**
* .iotexapi.ReadStakingDataRequest.ContractStakingBucketTypes contractStakingBucketTypes = 10;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes, com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypesOrBuilder>
getContractStakingBucketTypesFieldBuilder() {
if (contractStakingBucketTypesBuilder_ == null) {
if (!(requestCase_ == 10)) {
request_ = com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.getDefaultInstance();
}
- contractStakingBucketTypesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ contractStakingBucketTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes, com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes.Builder, com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypesOrBuilder>(
(com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypes) request_,
getParentForChildren(),
@@ -7981,9 +8659,21 @@ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBu
request_ = null;
}
requestCase_ = 10;
- onChanged();
+ onChanged();;
return contractStakingBucketTypesBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStakingDataRequest)
}
@@ -8005,18 +8695,7 @@ public ReadStakingDataRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadStakingDataRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequestOrBuilder.java
index 8cfb531..a1af3ae 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStakingDataRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/read_state.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -159,5 +157,5 @@ public interface ReadStakingDataRequestOrBuilder extends
*/
com.github.iotexproject.grpc.api.ReadStakingDataRequest.ContractStakingBucketTypesOrBuilder getContractStakingBucketTypesOrBuilder();
- com.github.iotexproject.grpc.api.ReadStakingDataRequest.RequestCase getRequestCase();
+ public com.github.iotexproject.grpc.api.ReadStakingDataRequest.RequestCase getRequestCase();
}
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadState.java b/src/main/java/com/github/iotexproject/grpc/api/ReadState.java
index ea966e8..4b6526f 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadState.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadState.java
@@ -1,21 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/read_state.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
public final class ReadState {
private ReadState() {}
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadState.class.getName());
- }
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
@@ -28,67 +17,67 @@ public static void registerAllExtensions(
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_PaginationParam_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_PaginationParam_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataMethod_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataMethod_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_Candidates_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_Candidates_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -159,82 +148,81 @@ public static void registerAllExtensions(
internal_static_iotexapi_PaginationParam_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_iotexapi_PaginationParam_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_PaginationParam_descriptor,
new java.lang.String[] { "Offset", "Limit", });
internal_static_iotexapi_ReadStakingDataMethod_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_iotexapi_ReadStakingDataMethod_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataMethod_descriptor,
new java.lang.String[] { "Method", });
internal_static_iotexapi_ReadStakingDataRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_iotexapi_ReadStakingDataRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_descriptor,
new java.lang.String[] { "Buckets", "BucketsByVoter", "BucketsByCandidate", "Candidates", "CandidateByName", "BucketsByIndexes", "CandidateByAddress", "TotalStakingAmount", "BucketsCount", "ContractStakingBucketTypes", "Request", });
internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(0);
internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_VoteBuckets_descriptor,
new java.lang.String[] { "Pagination", });
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(1);
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByVoter_descriptor,
new java.lang.String[] { "VoterAddress", "Pagination", });
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(2);
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByCandidate_descriptor,
new java.lang.String[] { "CandName", "Pagination", });
internal_static_iotexapi_ReadStakingDataRequest_Candidates_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(3);
internal_static_iotexapi_ReadStakingDataRequest_Candidates_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_Candidates_descriptor,
new java.lang.String[] { "Pagination", });
internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(4);
internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_CandidateByName_descriptor,
new java.lang.String[] { "CandName", });
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(5);
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_VoteBucketsByIndexes_descriptor,
new java.lang.String[] { "Index", });
internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(6);
internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_CandidateByAddress_descriptor,
new java.lang.String[] { "OwnerAddr", "Id", });
internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(7);
internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_TotalStakingAmount_descriptor,
new java.lang.String[] { });
internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(8);
internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_BucketsCount_descriptor,
new java.lang.String[] { });
internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_descriptor =
internal_static_iotexapi_ReadStakingDataRequest_descriptor.getNestedTypes().get(9);
internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexapi_ReadStakingDataRequest_ContractStakingBucketTypes_descriptor,
new java.lang.String[] { "ContractAddress", });
- descriptor.resolveAllFeaturesImmutable();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequest.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequest.java
index 459f7a3..6e6d48c 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,37 +7,105 @@
* Protobuf type {@code iotexapi.ReadStateRequest}
*/
public final class ReadStateRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStateRequest)
ReadStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadStateRequest.class.getName());
- }
// Use ReadStateRequest.newBuilder() to construct.
- private ReadStateRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadStateRequest() {
protocolID_ = com.google.protobuf.ByteString.EMPTY;
methodName_ = com.google.protobuf.ByteString.EMPTY;
- arguments_ = emptyList(com.google.protobuf.ByteString.class);
+ arguments_ = java.util.Collections.emptyList();
height_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadStateRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadStateRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+
+ protocolID_ = input.readBytes();
+ break;
+ }
+ case 18: {
+
+ methodName_ = input.readBytes();
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ arguments_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ arguments_.add(input.readBytes());
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ height_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ arguments_ = java.util.Collections.unmodifiableList(arguments_); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadStateRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -47,7 +113,7 @@ private ReadStateRequest() {
}
public static final int PROTOCOLID_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString protocolID_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString protocolID_;
/**
* bytes protocolID = 1;
* @return The protocolID.
@@ -58,7 +124,7 @@ public com.google.protobuf.ByteString getProtocolID() {
}
public static final int METHODNAME_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString methodName_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString methodName_;
/**
* bytes methodName = 2;
* @return The methodName.
@@ -69,9 +135,7 @@ public com.google.protobuf.ByteString getMethodName() {
}
public static final int ARGUMENTS_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.ProtobufList arguments_ =
- emptyList(com.google.protobuf.ByteString.class);
+ private java.util.List arguments_;
/**
* repeated bytes arguments = 3;
* @return A list containing the arguments.
@@ -98,8 +162,7 @@ public com.google.protobuf.ByteString getArguments(int index) {
}
public static final int HEIGHT_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private volatile java.lang.Object height_ = "";
+ private volatile java.lang.Object height_;
/**
*
* optional, if not present, read from tip height
@@ -167,10 +230,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < arguments_.size(); i++) {
output.writeBytes(3, arguments_.get(i));
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(height_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, height_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(height_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, height_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -196,10 +259,10 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getArgumentsList().size();
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(height_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, height_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(height_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, height_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -222,7 +285,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getArgumentsList())) return false;
if (!getHeight()
.equals(other.getHeight())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -243,7 +306,7 @@ public int hashCode() {
}
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -282,41 +345,39 @@ public static com.github.iotexproject.grpc.api.ReadStateRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.ReadStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStateRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStateRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStateRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -336,7 +397,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -344,7 +405,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStateRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStateRequest)
com.github.iotexproject.grpc.api.ReadStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -353,7 +414,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -362,22 +423,30 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.ReadStateRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
protocolID_ = com.google.protobuf.ByteString.EMPTY;
+
methodName_ = com.google.protobuf.ByteString.EMPTY;
- arguments_ = emptyList(com.google.protobuf.ByteString.class);
+
+ arguments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
height_ = "";
+
return this;
}
@@ -404,28 +473,51 @@ public com.github.iotexproject.grpc.api.ReadStateRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStateRequest buildPartial() {
com.github.iotexproject.grpc.api.ReadStateRequest result = new com.github.iotexproject.grpc.api.ReadStateRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ int from_bitField0_ = bitField0_;
+ result.protocolID_ = protocolID_;
+ result.methodName_ = methodName_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ arguments_ = java.util.Collections.unmodifiableList(arguments_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.arguments_ = arguments_;
+ result.height_ = height_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStateRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.protocolID_ = protocolID_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.methodName_ = methodName_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- arguments_.makeImmutable();
- result.arguments_ = arguments_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.height_ = height_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStateRequest) {
@@ -447,8 +539,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStateRequest other
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
- arguments_.makeImmutable();
- bitField0_ |= 0x00000004;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
@@ -457,10 +548,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStateRequest other
}
if (!other.getHeight().isEmpty()) {
height_ = other.height_;
- bitField0_ |= 0x00000008;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -475,51 +565,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStateRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- protocolID_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- methodName_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- com.google.protobuf.ByteString v = input.readBytes();
- ensureArgumentsIsMutable();
- arguments_.add(v);
- break;
- } // case 26
- case 34: {
- height_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -539,9 +595,11 @@ public com.google.protobuf.ByteString getProtocolID() {
* @return This builder for chaining.
*/
public Builder setProtocolID(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
protocolID_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -550,7 +608,7 @@ public Builder setProtocolID(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearProtocolID() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
protocolID_ = getDefaultInstance().getProtocolID();
onChanged();
return this;
@@ -571,9 +629,11 @@ public com.google.protobuf.ByteString getMethodName() {
* @return This builder for chaining.
*/
public Builder setMethodName(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
methodName_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -582,18 +642,18 @@ public Builder setMethodName(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearMethodName() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
methodName_ = getDefaultInstance().getMethodName();
onChanged();
return this;
}
- private com.google.protobuf.Internal.ProtobufList arguments_ = emptyList(com.google.protobuf.ByteString.class);
+ private java.util.List arguments_ = java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
- if (!arguments_.isModifiable()) {
- arguments_ = makeMutableCopy(arguments_);
- }
- bitField0_ |= 0x00000004;
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ arguments_ = new java.util.ArrayList(arguments_);
+ bitField0_ |= 0x00000001;
+ }
}
/**
* repeated bytes arguments = 3;
@@ -601,8 +661,8 @@ private void ensureArgumentsIsMutable() {
*/
public java.util.List
getArgumentsList() {
- arguments_.makeImmutable();
- return arguments_;
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(arguments_) : arguments_;
}
/**
* repeated bytes arguments = 3;
@@ -627,10 +687,11 @@ public com.google.protobuf.ByteString getArguments(int index) {
*/
public Builder setArguments(
int index, com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureArgumentsIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgumentsIsMutable();
arguments_.set(index, value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -640,10 +701,11 @@ public Builder setArguments(
* @return This builder for chaining.
*/
public Builder addArguments(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureArgumentsIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgumentsIsMutable();
arguments_.add(value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -657,7 +719,6 @@ public Builder addAllArguments(
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -666,8 +727,8 @@ public Builder addAllArguments(
* @return This builder for chaining.
*/
public Builder clearArguments() {
- arguments_ = emptyList(com.google.protobuf.ByteString.class);
- bitField0_ = (bitField0_ & ~0x00000004);
+ arguments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -725,9 +786,11 @@ public java.lang.String getHeight() {
*/
public Builder setHeight(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
height_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -740,8 +803,8 @@ public Builder setHeight(
* @return This builder for chaining.
*/
public Builder clearHeight() {
+
height_ = getDefaultInstance().getHeight();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -756,13 +819,27 @@ public Builder clearHeight() {
*/
public Builder setHeightBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
height_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStateRequest)
}
@@ -784,18 +861,7 @@ public ReadStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadStateRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequestOrBuilder.java
index eb47562..ded0a73 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStateRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponse.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponse.java
index b5149cb..5e0b5f8 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,43 +7,100 @@
* Protobuf type {@code iotexapi.ReadStateResponse}
*/
public final class ReadStateResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReadStateResponse)
ReadStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReadStateResponse.class.getName());
- }
// Use ReadStateResponse.newBuilder() to construct.
- private ReadStateResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReadStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadStateResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadStateResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadStateResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+
+ data_ = input.readBytes();
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.types.BlockIdentifier.Builder subBuilder = null;
+ if (blockIdentifier_ != null) {
+ subBuilder = blockIdentifier_.toBuilder();
+ }
+ blockIdentifier_ = input.readMessage(com.github.iotexproject.grpc.types.BlockIdentifier.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(blockIdentifier_);
+ blockIdentifier_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadStateResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReadStateResponse.class, com.github.iotexproject.grpc.api.ReadStateResponse.Builder.class);
}
- private int bitField0_;
public static final int DATA_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString data_;
/**
* bytes data = 1;
* @return The data.
@@ -63,7 +118,7 @@ public com.google.protobuf.ByteString getData() {
*/
@java.lang.Override
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000001) != 0);
+ return blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -78,7 +133,7 @@ public com.github.iotexproject.grpc.types.BlockIdentifier getBlockIdentifier() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdentifierOrBuilder() {
- return blockIdentifier_ == null ? com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance() : blockIdentifier_;
+ return getBlockIdentifier();
}
private byte memoizedIsInitialized = -1;
@@ -98,10 +153,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!data_.isEmpty()) {
output.writeBytes(1, data_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (blockIdentifier_ != null) {
output.writeMessage(2, getBlockIdentifier());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -114,11 +169,11 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (blockIdentifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBlockIdentifier());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -140,7 +195,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlockIdentifier()
.equals(other.getBlockIdentifier())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -157,7 +212,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getBlockIdentifier().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -196,41 +251,39 @@ public static com.github.iotexproject.grpc.api.ReadStateResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.ReadStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStateResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReadStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReadStateResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReadStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReadStateResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -250,7 +303,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -258,7 +311,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReadStateResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReadStateResponse)
com.github.iotexproject.grpc.api.ReadStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -267,7 +320,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReadStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -280,24 +333,24 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getBlockIdentifierFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
return this;
@@ -326,26 +379,48 @@ public com.github.iotexproject.grpc.api.ReadStateResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReadStateResponse buildPartial() {
com.github.iotexproject.grpc.api.ReadStateResponse result = new com.github.iotexproject.grpc.api.ReadStateResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.data_ = data_;
+ if (blockIdentifierBuilder_ == null) {
+ result.blockIdentifier_ = blockIdentifier_;
+ } else {
+ result.blockIdentifier_ = blockIdentifierBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReadStateResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.data_ = data_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.blockIdentifier_ = blockIdentifierBuilder_ == null
- ? blockIdentifier_
- : blockIdentifierBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReadStateResponse) {
@@ -364,7 +439,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReadStateResponse othe
if (other.hasBlockIdentifier()) {
mergeBlockIdentifier(other.getBlockIdentifier());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -379,45 +454,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReadStateResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- data_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getBlockIdentifierFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReadStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
@@ -434,9 +483,11 @@ public com.google.protobuf.ByteString getData() {
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
data_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -445,21 +496,21 @@ public Builder setData(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearData() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private com.github.iotexproject.grpc.types.BlockIdentifier blockIdentifier_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder> blockIdentifierBuilder_;
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
* @return Whether the blockIdentifier field is set.
*/
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000002) != 0);
+ return blockIdentifierBuilder_ != null || blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -481,11 +532,11 @@ public Builder setBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdenti
throw new NullPointerException();
}
blockIdentifier_ = value;
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -495,11 +546,11 @@ public Builder setBlockIdentifier(
com.github.iotexproject.grpc.types.BlockIdentifier.Builder builderForValue) {
if (blockIdentifierBuilder_ == null) {
blockIdentifier_ = builderForValue.build();
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -507,40 +558,38 @@ public Builder setBlockIdentifier(
*/
public Builder mergeBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdentifier value) {
if (blockIdentifierBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- blockIdentifier_ != null &&
- blockIdentifier_ != com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance()) {
- getBlockIdentifierBuilder().mergeFrom(value);
+ if (blockIdentifier_ != null) {
+ blockIdentifier_ =
+ com.github.iotexproject.grpc.types.BlockIdentifier.newBuilder(blockIdentifier_).mergeFrom(value).buildPartial();
} else {
blockIdentifier_ = value;
}
+ onChanged();
} else {
blockIdentifierBuilder_.mergeFrom(value);
}
- if (blockIdentifier_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public Builder clearBlockIdentifier() {
- bitField0_ = (bitField0_ & ~0x00000002);
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ onChanged();
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public com.github.iotexproject.grpc.types.BlockIdentifier.Builder getBlockIdentifierBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getBlockIdentifierFieldBuilder().getBuilder();
}
@@ -558,11 +607,11 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>
getBlockIdentifierFieldBuilder() {
if (blockIdentifierBuilder_ == null) {
- blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>(
getBlockIdentifier(),
getParentForChildren(),
@@ -571,6 +620,18 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
}
return blockIdentifierBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReadStateResponse)
}
@@ -592,18 +653,7 @@ public ReadStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReadStateResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponseOrBuilder.java
index 7026b37..361da06 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReadStateResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfo.java b/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfo.java
index dfd888c..3e72ce2 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfo.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfo.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,41 +7,99 @@
* Protobuf type {@code iotexapi.ReceiptInfo}
*/
public final class ReceiptInfo extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.ReceiptInfo)
ReceiptInfoOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ReceiptInfo.class.getName());
- }
// Use ReceiptInfo.newBuilder() to construct.
- private ReceiptInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ReceiptInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReceiptInfo() {
blkHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReceiptInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReceiptInfo(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.Receipt.Builder subBuilder = null;
+ if (receipt_ != null) {
+ subBuilder = receipt_.toBuilder();
+ }
+ receipt_ = input.readMessage(com.github.iotexproject.grpc.types.Receipt.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(receipt_);
+ receipt_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ blkHash_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReceiptInfo_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReceiptInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.ReceiptInfo.class, com.github.iotexproject.grpc.api.ReceiptInfo.Builder.class);
}
- private int bitField0_;
public static final int RECEIPT_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.Receipt receipt_;
/**
@@ -52,7 +108,7 @@ private ReceiptInfo() {
*/
@java.lang.Override
public boolean hasReceipt() {
- return ((bitField0_ & 0x00000001) != 0);
+ return receipt_ != null;
}
/**
* .iotextypes.Receipt receipt = 1;
@@ -67,12 +123,11 @@ public com.github.iotexproject.grpc.types.Receipt getReceipt() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ReceiptOrBuilder getReceiptOrBuilder() {
- return receipt_ == null ? com.github.iotexproject.grpc.types.Receipt.getDefaultInstance() : receipt_;
+ return getReceipt();
}
public static final int BLKHASH_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object blkHash_ = "";
+ private volatile java.lang.Object blkHash_;
/**
* string blkHash = 2;
* @return The blkHash.
@@ -123,13 +178,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (receipt_ != null) {
output.writeMessage(1, getReceipt());
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(blkHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, blkHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blkHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blkHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -138,14 +193,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (receipt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getReceipt());
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(blkHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, blkHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blkHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blkHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -167,7 +222,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getBlkHash()
.equals(other.getBlkHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -184,7 +239,7 @@ public int hashCode() {
}
hash = (37 * hash) + BLKHASH_FIELD_NUMBER;
hash = (53 * hash) + getBlkHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -223,41 +278,39 @@ public static com.github.iotexproject.grpc.api.ReceiptInfo parseFrom(
}
public static com.github.iotexproject.grpc.api.ReceiptInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReceiptInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.ReceiptInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.ReceiptInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.ReceiptInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.ReceiptInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -277,7 +330,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -285,7 +338,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.ReceiptInfo}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.ReceiptInfo)
com.github.iotexproject.grpc.api.ReceiptInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -294,7 +347,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_ReceiptInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -307,26 +360,26 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getReceiptFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- receipt_ = null;
- if (receiptBuilder_ != null) {
- receiptBuilder_.dispose();
+ if (receiptBuilder_ == null) {
+ receipt_ = null;
+ } else {
+ receipt_ = null;
receiptBuilder_ = null;
}
blkHash_ = "";
+
return this;
}
@@ -353,26 +406,48 @@ public com.github.iotexproject.grpc.api.ReceiptInfo build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.ReceiptInfo buildPartial() {
com.github.iotexproject.grpc.api.ReceiptInfo result = new com.github.iotexproject.grpc.api.ReceiptInfo(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (receiptBuilder_ == null) {
+ result.receipt_ = receipt_;
+ } else {
+ result.receipt_ = receiptBuilder_.build();
+ }
+ result.blkHash_ = blkHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.ReceiptInfo result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.receipt_ = receiptBuilder_ == null
- ? receipt_
- : receiptBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.blkHash_ = blkHash_;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.ReceiptInfo) {
@@ -390,10 +465,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.ReceiptInfo other) {
}
if (!other.getBlkHash().isEmpty()) {
blkHash_ = other.blkHash_;
- bitField0_ |= 0x00000002;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -408,55 +482,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.ReceiptInfo parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getReceiptFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- blkHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.ReceiptInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.Receipt receipt_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Receipt, com.github.iotexproject.grpc.types.Receipt.Builder, com.github.iotexproject.grpc.types.ReceiptOrBuilder> receiptBuilder_;
/**
* .iotextypes.Receipt receipt = 1;
* @return Whether the receipt field is set.
*/
public boolean hasReceipt() {
- return ((bitField0_ & 0x00000001) != 0);
+ return receiptBuilder_ != null || receipt_ != null;
}
/**
* .iotextypes.Receipt receipt = 1;
@@ -478,11 +526,11 @@ public Builder setReceipt(com.github.iotexproject.grpc.types.Receipt value) {
throw new NullPointerException();
}
receipt_ = value;
+ onChanged();
} else {
receiptBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -492,11 +540,11 @@ public Builder setReceipt(
com.github.iotexproject.grpc.types.Receipt.Builder builderForValue) {
if (receiptBuilder_ == null) {
receipt_ = builderForValue.build();
+ onChanged();
} else {
receiptBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -504,40 +552,38 @@ public Builder setReceipt(
*/
public Builder mergeReceipt(com.github.iotexproject.grpc.types.Receipt value) {
if (receiptBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- receipt_ != null &&
- receipt_ != com.github.iotexproject.grpc.types.Receipt.getDefaultInstance()) {
- getReceiptBuilder().mergeFrom(value);
+ if (receipt_ != null) {
+ receipt_ =
+ com.github.iotexproject.grpc.types.Receipt.newBuilder(receipt_).mergeFrom(value).buildPartial();
} else {
receipt_ = value;
}
+ onChanged();
} else {
receiptBuilder_.mergeFrom(value);
}
- if (receipt_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.Receipt receipt = 1;
*/
public Builder clearReceipt() {
- bitField0_ = (bitField0_ & ~0x00000001);
- receipt_ = null;
- if (receiptBuilder_ != null) {
- receiptBuilder_.dispose();
+ if (receiptBuilder_ == null) {
+ receipt_ = null;
+ onChanged();
+ } else {
+ receipt_ = null;
receiptBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.Receipt receipt = 1;
*/
public com.github.iotexproject.grpc.types.Receipt.Builder getReceiptBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getReceiptFieldBuilder().getBuilder();
}
@@ -555,11 +601,11 @@ public com.github.iotexproject.grpc.types.ReceiptOrBuilder getReceiptOrBuilder()
/**
* .iotextypes.Receipt receipt = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Receipt, com.github.iotexproject.grpc.types.Receipt.Builder, com.github.iotexproject.grpc.types.ReceiptOrBuilder>
getReceiptFieldBuilder() {
if (receiptBuilder_ == null) {
- receiptBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Receipt, com.github.iotexproject.grpc.types.Receipt.Builder, com.github.iotexproject.grpc.types.ReceiptOrBuilder>(
getReceipt(),
getParentForChildren(),
@@ -610,9 +656,11 @@ public java.lang.String getBlkHash() {
*/
public Builder setBlkHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
blkHash_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -621,8 +669,8 @@ public Builder setBlkHash(
* @return This builder for chaining.
*/
public Builder clearBlkHash() {
+
blkHash_ = getDefaultInstance().getBlkHash();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -633,13 +681,27 @@ public Builder clearBlkHash() {
*/
public Builder setBlkHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
blkHash_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.ReceiptInfo)
}
@@ -661,18 +723,7 @@ public ReceiptInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ReceiptInfo(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfoOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfoOrBuilder.java
index a48be05..1ab7c45 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfoOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/ReceiptInfoOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SendActionRequest.java b/src/main/java/com/github/iotexproject/grpc/api/SendActionRequest.java
index 53c029c..387f7e5 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SendActionRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SendActionRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,92 @@
* Protobuf type {@code iotexapi.SendActionRequest}
*/
public final class SendActionRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.SendActionRequest)
SendActionRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- SendActionRequest.class.getName());
- }
// Use SendActionRequest.newBuilder() to construct.
- private SendActionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private SendActionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendActionRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SendActionRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SendActionRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.Action.Builder subBuilder = null;
+ if (action_ != null) {
+ subBuilder = action_.toBuilder();
+ }
+ action_ = input.readMessage(com.github.iotexproject.grpc.types.Action.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(action_);
+ action_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendActionRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendActionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.SendActionRequest.class, com.github.iotexproject.grpc.api.SendActionRequest.Builder.class);
}
- private int bitField0_;
public static final int ACTION_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.Action action_;
/**
@@ -51,7 +101,7 @@ private SendActionRequest() {
*/
@java.lang.Override
public boolean hasAction() {
- return ((bitField0_ & 0x00000001) != 0);
+ return action_ != null;
}
/**
* .iotextypes.Action action = 1;
@@ -66,7 +116,7 @@ public com.github.iotexproject.grpc.types.Action getAction() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ActionOrBuilder getActionOrBuilder() {
- return action_ == null ? com.github.iotexproject.grpc.types.Action.getDefaultInstance() : action_;
+ return getAction();
}
private byte memoizedIsInitialized = -1;
@@ -83,10 +133,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (action_ != null) {
output.writeMessage(1, getAction());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -95,11 +145,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (action_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAction());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -119,7 +169,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getAction()
.equals(other.getAction())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -134,7 +184,7 @@ public int hashCode() {
hash = (37 * hash) + ACTION_FIELD_NUMBER;
hash = (53 * hash) + getAction().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -173,41 +223,39 @@ public static com.github.iotexproject.grpc.api.SendActionRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.SendActionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SendActionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.SendActionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.SendActionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.SendActionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SendActionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -227,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -235,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.SendActionRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.SendActionRequest)
com.github.iotexproject.grpc.api.SendActionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -244,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendActionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -257,23 +305,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getActionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- action_ = null;
- if (actionBuilder_ != null) {
- actionBuilder_.dispose();
+ if (actionBuilder_ == null) {
+ action_ = null;
+ } else {
+ action_ = null;
actionBuilder_ = null;
}
return this;
@@ -302,23 +349,47 @@ public com.github.iotexproject.grpc.api.SendActionRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.SendActionRequest buildPartial() {
com.github.iotexproject.grpc.api.SendActionRequest result = new com.github.iotexproject.grpc.api.SendActionRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (actionBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = actionBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.SendActionRequest result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.action_ = actionBuilder_ == null
- ? action_
- : actionBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.SendActionRequest) {
@@ -334,7 +405,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.SendActionRequest othe
if (other.hasAction()) {
mergeAction(other.getAction());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -349,50 +420,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.SendActionRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getActionFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.SendActionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.Action action_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder> actionBuilder_;
/**
* .iotextypes.Action action = 1;
* @return Whether the action field is set.
*/
public boolean hasAction() {
- return ((bitField0_ & 0x00000001) != 0);
+ return actionBuilder_ != null || action_ != null;
}
/**
* .iotextypes.Action action = 1;
@@ -414,11 +464,11 @@ public Builder setAction(com.github.iotexproject.grpc.types.Action value) {
throw new NullPointerException();
}
action_ = value;
+ onChanged();
} else {
actionBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -428,11 +478,11 @@ public Builder setAction(
com.github.iotexproject.grpc.types.Action.Builder builderForValue) {
if (actionBuilder_ == null) {
action_ = builderForValue.build();
+ onChanged();
} else {
actionBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -440,40 +490,38 @@ public Builder setAction(
*/
public Builder mergeAction(com.github.iotexproject.grpc.types.Action value) {
if (actionBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- action_ != null &&
- action_ != com.github.iotexproject.grpc.types.Action.getDefaultInstance()) {
- getActionBuilder().mergeFrom(value);
+ if (action_ != null) {
+ action_ =
+ com.github.iotexproject.grpc.types.Action.newBuilder(action_).mergeFrom(value).buildPartial();
} else {
action_ = value;
}
+ onChanged();
} else {
actionBuilder_.mergeFrom(value);
}
- if (action_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.Action action = 1;
*/
public Builder clearAction() {
- bitField0_ = (bitField0_ & ~0x00000001);
- action_ = null;
- if (actionBuilder_ != null) {
- actionBuilder_.dispose();
+ if (actionBuilder_ == null) {
+ action_ = null;
+ onChanged();
+ } else {
+ action_ = null;
actionBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.Action action = 1;
*/
public com.github.iotexproject.grpc.types.Action.Builder getActionBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getActionFieldBuilder().getBuilder();
}
@@ -491,11 +539,11 @@ public com.github.iotexproject.grpc.types.ActionOrBuilder getActionOrBuilder() {
/**
* .iotextypes.Action action = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder>
getActionFieldBuilder() {
if (actionBuilder_ == null) {
- actionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Action, com.github.iotexproject.grpc.types.Action.Builder, com.github.iotexproject.grpc.types.ActionOrBuilder>(
getAction(),
getParentForChildren(),
@@ -504,6 +552,18 @@ public com.github.iotexproject.grpc.types.ActionOrBuilder getActionOrBuilder() {
}
return actionBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.SendActionRequest)
}
@@ -525,18 +585,7 @@ public SendActionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new SendActionRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SendActionRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/SendActionRequestOrBuilder.java
index 2198e65..0d47c40 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SendActionRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SendActionRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SendActionResponse.java b/src/main/java/com/github/iotexproject/grpc/api/SendActionResponse.java
index b997dfa..c0904a1 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SendActionResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SendActionResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.SendActionResponse}
*/
public final class SendActionResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.SendActionResponse)
SendActionResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- SendActionResponse.class.getName());
- }
// Use SendActionResponse.newBuilder() to construct.
- private SendActionResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private SendActionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendActionResponse() {
actionHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SendActionResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SendActionResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ actionHash_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendActionResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendActionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +88,7 @@ private SendActionResponse() {
}
public static final int ACTIONHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object actionHash_ = "";
+ private volatile java.lang.Object actionHash_;
/**
* string actionHash = 1;
* @return The actionHash.
@@ -96,10 +139,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -108,10 +151,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -128,7 +171,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionHash()
.equals(other.getActionHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -141,7 +184,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACTIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getActionHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -180,41 +223,39 @@ public static com.github.iotexproject.grpc.api.SendActionResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.SendActionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SendActionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.SendActionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.SendActionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.SendActionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SendActionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -234,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -242,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.SendActionResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.SendActionResponse)
com.github.iotexproject.grpc.api.SendActionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -251,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendActionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -260,19 +301,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.SendActionResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
actionHash_ = "";
+
return this;
}
@@ -299,18 +345,43 @@ public com.github.iotexproject.grpc.api.SendActionResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.SendActionResponse buildPartial() {
com.github.iotexproject.grpc.api.SendActionResponse result = new com.github.iotexproject.grpc.api.SendActionResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.actionHash_ = actionHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.SendActionResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionHash_ = actionHash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.SendActionResponse) {
@@ -325,10 +396,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.SendActionResponse oth
if (other == com.github.iotexproject.grpc.api.SendActionResponse.getDefaultInstance()) return this;
if (!other.getActionHash().isEmpty()) {
actionHash_ = other.actionHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -343,38 +413,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.SendActionResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- actionHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.SendActionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object actionHash_ = "";
/**
@@ -417,9 +468,11 @@ public java.lang.String getActionHash() {
*/
public Builder setActionHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -428,8 +481,8 @@ public Builder setActionHash(
* @return This builder for chaining.
*/
public Builder clearActionHash() {
+
actionHash_ = getDefaultInstance().getActionHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -440,13 +493,27 @@ public Builder clearActionHash() {
*/
public Builder setActionHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.SendActionResponse)
}
@@ -468,18 +535,7 @@ public SendActionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new SendActionResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SendActionResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/SendActionResponseOrBuilder.java
index c8452e5..a916a46 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SendActionResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SendActionResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequest.java b/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequest.java
index c1a8d5f..78075b1 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.SendSignedActionBytesRequest}
*/
public final class SendSignedActionBytesRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.SendSignedActionBytesRequest)
SendSignedActionBytesRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- SendSignedActionBytesRequest.class.getName());
- }
// Use SendSignedActionBytesRequest.newBuilder() to construct.
- private SendSignedActionBytesRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private SendSignedActionBytesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendSignedActionBytesRequest() {
signedActionBytes_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SendSignedActionBytesRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SendSignedActionBytesRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ signedActionBytes_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendSignedActionBytesRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendSignedActionBytesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +88,7 @@ private SendSignedActionBytesRequest() {
}
public static final int SIGNEDACTIONBYTES_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object signedActionBytes_ = "";
+ private volatile java.lang.Object signedActionBytes_;
/**
* string signedActionBytes = 1;
* @return The signedActionBytes.
@@ -96,10 +139,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signedActionBytes_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, signedActionBytes_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedActionBytes_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedActionBytes_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -108,10 +151,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signedActionBytes_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, signedActionBytes_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedActionBytes_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signedActionBytes_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -128,7 +171,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSignedActionBytes()
.equals(other.getSignedActionBytes())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -141,7 +184,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SIGNEDACTIONBYTES_FIELD_NUMBER;
hash = (53 * hash) + getSignedActionBytes().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -180,41 +223,39 @@ public static com.github.iotexproject.grpc.api.SendSignedActionBytesRequest pars
}
public static com.github.iotexproject.grpc.api.SendSignedActionBytesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SendSignedActionBytesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.SendSignedActionBytesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.SendSignedActionBytesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.SendSignedActionBytesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SendSignedActionBytesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -234,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -242,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.SendSignedActionBytesRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.SendSignedActionBytesRequest)
com.github.iotexproject.grpc.api.SendSignedActionBytesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -251,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SendSignedActionBytesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -260,19 +301,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.SendSignedActionBytesRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
signedActionBytes_ = "";
+
return this;
}
@@ -299,18 +345,43 @@ public com.github.iotexproject.grpc.api.SendSignedActionBytesRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.SendSignedActionBytesRequest buildPartial() {
com.github.iotexproject.grpc.api.SendSignedActionBytesRequest result = new com.github.iotexproject.grpc.api.SendSignedActionBytesRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.signedActionBytes_ = signedActionBytes_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.SendSignedActionBytesRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.signedActionBytes_ = signedActionBytes_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.SendSignedActionBytesRequest) {
@@ -325,10 +396,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.SendSignedActionBytesR
if (other == com.github.iotexproject.grpc.api.SendSignedActionBytesRequest.getDefaultInstance()) return this;
if (!other.getSignedActionBytes().isEmpty()) {
signedActionBytes_ = other.signedActionBytes_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -343,38 +413,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.SendSignedActionBytesRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- signedActionBytes_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.SendSignedActionBytesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object signedActionBytes_ = "";
/**
@@ -417,9 +468,11 @@ public java.lang.String getSignedActionBytes() {
*/
public Builder setSignedActionBytes(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
signedActionBytes_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -428,8 +481,8 @@ public Builder setSignedActionBytes(
* @return This builder for chaining.
*/
public Builder clearSignedActionBytes() {
+
signedActionBytes_ = getDefaultInstance().getSignedActionBytes();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -440,13 +493,27 @@ public Builder clearSignedActionBytes() {
*/
public Builder setSignedActionBytesBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
signedActionBytes_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.SendSignedActionBytesRequest)
}
@@ -468,18 +535,7 @@ public SendSignedActionBytesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new SendSignedActionBytesRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequestOrBuilder.java
index 603a0d6..c91c0a1 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SendSignedActionBytesRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequest.java b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequest.java
index 3758dda..70ad615 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequest.java
@@ -1,46 +1,83 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
/**
*
- *
* below are streaming APIs
*
*
* Protobuf type {@code iotexapi.StreamBlocksRequest}
*/
public final class StreamBlocksRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.StreamBlocksRequest)
StreamBlocksRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- StreamBlocksRequest.class.getName());
- }
// Use StreamBlocksRequest.newBuilder() to construct.
- private StreamBlocksRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private StreamBlocksRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamBlocksRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new StreamBlocksRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StreamBlocksRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamBlocksRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamBlocksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -61,7 +98,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -70,7 +107,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -85,7 +122,7 @@ public boolean equals(final java.lang.Object obj) {
}
com.github.iotexproject.grpc.api.StreamBlocksRequest other = (com.github.iotexproject.grpc.api.StreamBlocksRequest) obj;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -96,7 +133,7 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -135,41 +172,39 @@ public static com.github.iotexproject.grpc.api.StreamBlocksRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.StreamBlocksRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamBlocksRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.StreamBlocksRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.StreamBlocksRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.StreamBlocksRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamBlocksRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -189,20 +224,19 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
- *
* below are streaming APIs
*
*
* Protobuf type {@code iotexapi.StreamBlocksRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.StreamBlocksRequest)
com.github.iotexproject.grpc.api.StreamBlocksRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -211,7 +245,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamBlocksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -220,13 +254,18 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.StreamBlocksRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
@@ -261,6 +300,38 @@ public com.github.iotexproject.grpc.api.StreamBlocksRequest buildPartial() {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.StreamBlocksRequest) {
@@ -273,7 +344,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.github.iotexproject.grpc.api.StreamBlocksRequest other) {
if (other == com.github.iotexproject.grpc.api.StreamBlocksRequest.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -288,32 +359,31 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.StreamBlocksRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.StreamBlocksRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.StreamBlocksRequest)
}
@@ -335,18 +405,7 @@ public StreamBlocksRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new StreamBlocksRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequestOrBuilder.java
index be0ef2c..7ed2547 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponse.java b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponse.java
index 8817534..ae742ac 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,105 @@
* Protobuf type {@code iotexapi.StreamBlocksResponse}
*/
public final class StreamBlocksResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.StreamBlocksResponse)
StreamBlocksResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- StreamBlocksResponse.class.getName());
- }
// Use StreamBlocksResponse.newBuilder() to construct.
- private StreamBlocksResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private StreamBlocksResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamBlocksResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new StreamBlocksResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StreamBlocksResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.BlockInfo.Builder subBuilder = null;
+ if (block_ != null) {
+ subBuilder = block_.toBuilder();
+ }
+ block_ = input.readMessage(com.github.iotexproject.grpc.api.BlockInfo.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(block_);
+ block_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ com.github.iotexproject.grpc.types.BlockIdentifier.Builder subBuilder = null;
+ if (blockIdentifier_ != null) {
+ subBuilder = blockIdentifier_.toBuilder();
+ }
+ blockIdentifier_ = input.readMessage(com.github.iotexproject.grpc.types.BlockIdentifier.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(blockIdentifier_);
+ blockIdentifier_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamBlocksResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamBlocksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.StreamBlocksResponse.class, com.github.iotexproject.grpc.api.StreamBlocksResponse.Builder.class);
}
- private int bitField0_;
public static final int BLOCK_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.api.BlockInfo block_;
/**
@@ -51,7 +114,7 @@ private StreamBlocksResponse() {
*/
@java.lang.Override
public boolean hasBlock() {
- return ((bitField0_ & 0x00000001) != 0);
+ return block_ != null;
}
/**
* .iotexapi.BlockInfo block = 1;
@@ -66,7 +129,7 @@ public com.github.iotexproject.grpc.api.BlockInfo getBlock() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.BlockInfoOrBuilder getBlockOrBuilder() {
- return block_ == null ? com.github.iotexproject.grpc.api.BlockInfo.getDefaultInstance() : block_;
+ return getBlock();
}
public static final int BLOCKIDENTIFIER_FIELD_NUMBER = 2;
@@ -77,7 +140,7 @@ public com.github.iotexproject.grpc.api.BlockInfoOrBuilder getBlockOrBuilder() {
*/
@java.lang.Override
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000002) != 0);
+ return blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -92,7 +155,7 @@ public com.github.iotexproject.grpc.types.BlockIdentifier getBlockIdentifier() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdentifierOrBuilder() {
- return blockIdentifier_ == null ? com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance() : blockIdentifier_;
+ return getBlockIdentifier();
}
private byte memoizedIsInitialized = -1;
@@ -109,13 +172,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (block_ != null) {
output.writeMessage(1, getBlock());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (blockIdentifier_ != null) {
output.writeMessage(2, getBlockIdentifier());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -124,15 +187,15 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (block_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBlock());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (blockIdentifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBlockIdentifier());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -157,7 +220,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getBlockIdentifier()
.equals(other.getBlockIdentifier())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -176,7 +239,7 @@ public int hashCode() {
hash = (37 * hash) + BLOCKIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getBlockIdentifier().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -215,41 +278,39 @@ public static com.github.iotexproject.grpc.api.StreamBlocksResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.StreamBlocksResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamBlocksResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.StreamBlocksResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.StreamBlocksResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.StreamBlocksResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamBlocksResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -269,7 +330,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -277,7 +338,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.StreamBlocksResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.StreamBlocksResponse)
com.github.iotexproject.grpc.api.StreamBlocksResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -286,7 +347,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamBlocksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -299,29 +360,28 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getBlockFieldBuilder();
- getBlockIdentifierFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- block_ = null;
- if (blockBuilder_ != null) {
- blockBuilder_.dispose();
+ if (blockBuilder_ == null) {
+ block_ = null;
+ } else {
+ block_ = null;
blockBuilder_ = null;
}
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
return this;
@@ -350,29 +410,52 @@ public com.github.iotexproject.grpc.api.StreamBlocksResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.StreamBlocksResponse buildPartial() {
com.github.iotexproject.grpc.api.StreamBlocksResponse result = new com.github.iotexproject.grpc.api.StreamBlocksResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (blockBuilder_ == null) {
+ result.block_ = block_;
+ } else {
+ result.block_ = blockBuilder_.build();
+ }
+ if (blockIdentifierBuilder_ == null) {
+ result.blockIdentifier_ = blockIdentifier_;
+ } else {
+ result.blockIdentifier_ = blockIdentifierBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.StreamBlocksResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.block_ = blockBuilder_ == null
- ? block_
- : blockBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.blockIdentifier_ = blockIdentifierBuilder_ == null
- ? blockIdentifier_
- : blockIdentifierBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.StreamBlocksResponse) {
@@ -391,7 +474,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.StreamBlocksResponse o
if (other.hasBlockIdentifier()) {
mergeBlockIdentifier(other.getBlockIdentifier());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -406,57 +489,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.StreamBlocksResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getBlockFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getBlockIdentifierFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.StreamBlocksResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.api.BlockInfo block_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockInfo, com.github.iotexproject.grpc.api.BlockInfo.Builder, com.github.iotexproject.grpc.api.BlockInfoOrBuilder> blockBuilder_;
/**
* .iotexapi.BlockInfo block = 1;
* @return Whether the block field is set.
*/
public boolean hasBlock() {
- return ((bitField0_ & 0x00000001) != 0);
+ return blockBuilder_ != null || block_ != null;
}
/**
* .iotexapi.BlockInfo block = 1;
@@ -478,11 +533,11 @@ public Builder setBlock(com.github.iotexproject.grpc.api.BlockInfo value) {
throw new NullPointerException();
}
block_ = value;
+ onChanged();
} else {
blockBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -492,11 +547,11 @@ public Builder setBlock(
com.github.iotexproject.grpc.api.BlockInfo.Builder builderForValue) {
if (blockBuilder_ == null) {
block_ = builderForValue.build();
+ onChanged();
} else {
blockBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -504,40 +559,38 @@ public Builder setBlock(
*/
public Builder mergeBlock(com.github.iotexproject.grpc.api.BlockInfo value) {
if (blockBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- block_ != null &&
- block_ != com.github.iotexproject.grpc.api.BlockInfo.getDefaultInstance()) {
- getBlockBuilder().mergeFrom(value);
+ if (block_ != null) {
+ block_ =
+ com.github.iotexproject.grpc.api.BlockInfo.newBuilder(block_).mergeFrom(value).buildPartial();
} else {
block_ = value;
}
+ onChanged();
} else {
blockBuilder_.mergeFrom(value);
}
- if (block_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.BlockInfo block = 1;
*/
public Builder clearBlock() {
- bitField0_ = (bitField0_ & ~0x00000001);
- block_ = null;
- if (blockBuilder_ != null) {
- blockBuilder_.dispose();
+ if (blockBuilder_ == null) {
+ block_ = null;
+ onChanged();
+ } else {
+ block_ = null;
blockBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.BlockInfo block = 1;
*/
public com.github.iotexproject.grpc.api.BlockInfo.Builder getBlockBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getBlockFieldBuilder().getBuilder();
}
@@ -555,11 +608,11 @@ public com.github.iotexproject.grpc.api.BlockInfoOrBuilder getBlockOrBuilder() {
/**
* .iotexapi.BlockInfo block = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockInfo, com.github.iotexproject.grpc.api.BlockInfo.Builder, com.github.iotexproject.grpc.api.BlockInfoOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
- blockBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.BlockInfo, com.github.iotexproject.grpc.api.BlockInfo.Builder, com.github.iotexproject.grpc.api.BlockInfoOrBuilder>(
getBlock(),
getParentForChildren(),
@@ -570,14 +623,14 @@ public com.github.iotexproject.grpc.api.BlockInfoOrBuilder getBlockOrBuilder() {
}
private com.github.iotexproject.grpc.types.BlockIdentifier blockIdentifier_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder> blockIdentifierBuilder_;
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
* @return Whether the blockIdentifier field is set.
*/
public boolean hasBlockIdentifier() {
- return ((bitField0_ & 0x00000002) != 0);
+ return blockIdentifierBuilder_ != null || blockIdentifier_ != null;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
@@ -599,11 +652,11 @@ public Builder setBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdenti
throw new NullPointerException();
}
blockIdentifier_ = value;
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -613,11 +666,11 @@ public Builder setBlockIdentifier(
com.github.iotexproject.grpc.types.BlockIdentifier.Builder builderForValue) {
if (blockIdentifierBuilder_ == null) {
blockIdentifier_ = builderForValue.build();
+ onChanged();
} else {
blockIdentifierBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
/**
@@ -625,40 +678,38 @@ public Builder setBlockIdentifier(
*/
public Builder mergeBlockIdentifier(com.github.iotexproject.grpc.types.BlockIdentifier value) {
if (blockIdentifierBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- blockIdentifier_ != null &&
- blockIdentifier_ != com.github.iotexproject.grpc.types.BlockIdentifier.getDefaultInstance()) {
- getBlockIdentifierBuilder().mergeFrom(value);
+ if (blockIdentifier_ != null) {
+ blockIdentifier_ =
+ com.github.iotexproject.grpc.types.BlockIdentifier.newBuilder(blockIdentifier_).mergeFrom(value).buildPartial();
} else {
blockIdentifier_ = value;
}
+ onChanged();
} else {
blockIdentifierBuilder_.mergeFrom(value);
}
- if (blockIdentifier_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public Builder clearBlockIdentifier() {
- bitField0_ = (bitField0_ & ~0x00000002);
- blockIdentifier_ = null;
- if (blockIdentifierBuilder_ != null) {
- blockIdentifierBuilder_.dispose();
+ if (blockIdentifierBuilder_ == null) {
+ blockIdentifier_ = null;
+ onChanged();
+ } else {
+ blockIdentifier_ = null;
blockIdentifierBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
public com.github.iotexproject.grpc.types.BlockIdentifier.Builder getBlockIdentifierBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getBlockIdentifierFieldBuilder().getBuilder();
}
@@ -676,11 +727,11 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
/**
* .iotextypes.BlockIdentifier blockIdentifier = 2;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>
getBlockIdentifierFieldBuilder() {
if (blockIdentifierBuilder_ == null) {
- blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlockIdentifier, com.github.iotexproject.grpc.types.BlockIdentifier.Builder, com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder>(
getBlockIdentifier(),
getParentForChildren(),
@@ -689,6 +740,18 @@ public com.github.iotexproject.grpc.types.BlockIdentifierOrBuilder getBlockIdent
}
return blockIdentifierBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.StreamBlocksResponse)
}
@@ -710,18 +773,7 @@ public StreamBlocksResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new StreamBlocksResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponseOrBuilder.java
index 6c7e95a..45f1ada 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamBlocksResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequest.java b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequest.java
index a5c82c2..269df76 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,92 @@
* Protobuf type {@code iotexapi.StreamLogsRequest}
*/
public final class StreamLogsRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.StreamLogsRequest)
StreamLogsRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- StreamLogsRequest.class.getName());
- }
// Use StreamLogsRequest.newBuilder() to construct.
- private StreamLogsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private StreamLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamLogsRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new StreamLogsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StreamLogsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.api.LogsFilter.Builder subBuilder = null;
+ if (filter_ != null) {
+ subBuilder = filter_.toBuilder();
+ }
+ filter_ = input.readMessage(com.github.iotexproject.grpc.api.LogsFilter.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(filter_);
+ filter_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamLogsRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.StreamLogsRequest.class, com.github.iotexproject.grpc.api.StreamLogsRequest.Builder.class);
}
- private int bitField0_;
public static final int FILTER_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.api.LogsFilter filter_;
/**
@@ -51,7 +101,7 @@ private StreamLogsRequest() {
*/
@java.lang.Override
public boolean hasFilter() {
- return ((bitField0_ & 0x00000001) != 0);
+ return filter_ != null;
}
/**
* .iotexapi.LogsFilter filter = 1;
@@ -66,7 +116,7 @@ public com.github.iotexproject.grpc.api.LogsFilter getFilter() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.api.LogsFilterOrBuilder getFilterOrBuilder() {
- return filter_ == null ? com.github.iotexproject.grpc.api.LogsFilter.getDefaultInstance() : filter_;
+ return getFilter();
}
private byte memoizedIsInitialized = -1;
@@ -83,10 +133,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (filter_ != null) {
output.writeMessage(1, getFilter());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -95,11 +145,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFilter());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -119,7 +169,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -134,7 +184,7 @@ public int hashCode() {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -173,41 +223,39 @@ public static com.github.iotexproject.grpc.api.StreamLogsRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.StreamLogsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamLogsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.StreamLogsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.StreamLogsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.StreamLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -227,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -235,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.StreamLogsRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.StreamLogsRequest)
com.github.iotexproject.grpc.api.StreamLogsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -244,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -257,23 +305,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getFilterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- filter_ = null;
- if (filterBuilder_ != null) {
- filterBuilder_.dispose();
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ } else {
+ filter_ = null;
filterBuilder_ = null;
}
return this;
@@ -302,23 +349,47 @@ public com.github.iotexproject.grpc.api.StreamLogsRequest build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.StreamLogsRequest buildPartial() {
com.github.iotexproject.grpc.api.StreamLogsRequest result = new com.github.iotexproject.grpc.api.StreamLogsRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (filterBuilder_ == null) {
+ result.filter_ = filter_;
+ } else {
+ result.filter_ = filterBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.StreamLogsRequest result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.filter_ = filterBuilder_ == null
- ? filter_
- : filterBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.StreamLogsRequest) {
@@ -334,7 +405,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.StreamLogsRequest othe
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -349,50 +420,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.StreamLogsRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getFilterFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.StreamLogsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.api.LogsFilter filter_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.LogsFilter, com.github.iotexproject.grpc.api.LogsFilter.Builder, com.github.iotexproject.grpc.api.LogsFilterOrBuilder> filterBuilder_;
/**
* .iotexapi.LogsFilter filter = 1;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
- return ((bitField0_ & 0x00000001) != 0);
+ return filterBuilder_ != null || filter_ != null;
}
/**
* .iotexapi.LogsFilter filter = 1;
@@ -414,11 +464,11 @@ public Builder setFilter(com.github.iotexproject.grpc.api.LogsFilter value) {
throw new NullPointerException();
}
filter_ = value;
+ onChanged();
} else {
filterBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -428,11 +478,11 @@ public Builder setFilter(
com.github.iotexproject.grpc.api.LogsFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
+ onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -440,40 +490,38 @@ public Builder setFilter(
*/
public Builder mergeFilter(com.github.iotexproject.grpc.api.LogsFilter value) {
if (filterBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- filter_ != null &&
- filter_ != com.github.iotexproject.grpc.api.LogsFilter.getDefaultInstance()) {
- getFilterBuilder().mergeFrom(value);
+ if (filter_ != null) {
+ filter_ =
+ com.github.iotexproject.grpc.api.LogsFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
+ onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
- if (filter_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotexapi.LogsFilter filter = 1;
*/
public Builder clearFilter() {
- bitField0_ = (bitField0_ & ~0x00000001);
- filter_ = null;
- if (filterBuilder_ != null) {
- filterBuilder_.dispose();
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ onChanged();
+ } else {
+ filter_ = null;
filterBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotexapi.LogsFilter filter = 1;
*/
public com.github.iotexproject.grpc.api.LogsFilter.Builder getFilterBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getFilterFieldBuilder().getBuilder();
}
@@ -491,11 +539,11 @@ public com.github.iotexproject.grpc.api.LogsFilterOrBuilder getFilterOrBuilder()
/**
* .iotexapi.LogsFilter filter = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.LogsFilter, com.github.iotexproject.grpc.api.LogsFilter.Builder, com.github.iotexproject.grpc.api.LogsFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
- filterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.api.LogsFilter, com.github.iotexproject.grpc.api.LogsFilter.Builder, com.github.iotexproject.grpc.api.LogsFilterOrBuilder>(
getFilter(),
getParentForChildren(),
@@ -504,6 +552,18 @@ public com.github.iotexproject.grpc.api.LogsFilterOrBuilder getFilterOrBuilder()
}
return filterBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.StreamLogsRequest)
}
@@ -525,18 +585,7 @@ public StreamLogsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new StreamLogsRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequestOrBuilder.java
index e80e308..ef0c143 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponse.java b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponse.java
index 6f1943a..fe5e59b 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,40 +7,92 @@
* Protobuf type {@code iotexapi.StreamLogsResponse}
*/
public final class StreamLogsResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.StreamLogsResponse)
StreamLogsResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- StreamLogsResponse.class.getName());
- }
// Use StreamLogsResponse.newBuilder() to construct.
- private StreamLogsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private StreamLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamLogsResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new StreamLogsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StreamLogsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.Log.Builder subBuilder = null;
+ if (log_ != null) {
+ subBuilder = log_.toBuilder();
+ }
+ log_ = input.readMessage(com.github.iotexproject.grpc.types.Log.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(log_);
+ log_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamLogsResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.api.StreamLogsResponse.class, com.github.iotexproject.grpc.api.StreamLogsResponse.Builder.class);
}
- private int bitField0_;
public static final int LOG_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.Log log_;
/**
@@ -51,7 +101,7 @@ private StreamLogsResponse() {
*/
@java.lang.Override
public boolean hasLog() {
- return ((bitField0_ & 0x00000001) != 0);
+ return log_ != null;
}
/**
* .iotextypes.Log log = 1;
@@ -66,7 +116,7 @@ public com.github.iotexproject.grpc.types.Log getLog() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.LogOrBuilder getLogOrBuilder() {
- return log_ == null ? com.github.iotexproject.grpc.types.Log.getDefaultInstance() : log_;
+ return getLog();
}
private byte memoizedIsInitialized = -1;
@@ -83,10 +133,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (log_ != null) {
output.writeMessage(1, getLog());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -95,11 +145,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (log_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLog());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -119,7 +169,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getLog()
.equals(other.getLog())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -134,7 +184,7 @@ public int hashCode() {
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -173,41 +223,39 @@ public static com.github.iotexproject.grpc.api.StreamLogsResponse parseFrom(
}
public static com.github.iotexproject.grpc.api.StreamLogsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamLogsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.StreamLogsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.StreamLogsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.StreamLogsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.StreamLogsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -227,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -235,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.StreamLogsResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.StreamLogsResponse)
com.github.iotexproject.grpc.api.StreamLogsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -244,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_StreamLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -257,23 +305,22 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getLogFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- log_ = null;
- if (logBuilder_ != null) {
- logBuilder_.dispose();
+ if (logBuilder_ == null) {
+ log_ = null;
+ } else {
+ log_ = null;
logBuilder_ = null;
}
return this;
@@ -302,23 +349,47 @@ public com.github.iotexproject.grpc.api.StreamLogsResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.StreamLogsResponse buildPartial() {
com.github.iotexproject.grpc.api.StreamLogsResponse result = new com.github.iotexproject.grpc.api.StreamLogsResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (logBuilder_ == null) {
+ result.log_ = log_;
+ } else {
+ result.log_ = logBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.StreamLogsResponse result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.log_ = logBuilder_ == null
- ? log_
- : logBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.StreamLogsResponse) {
@@ -334,7 +405,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.StreamLogsResponse oth
if (other.hasLog()) {
mergeLog(other.getLog());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -349,50 +420,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.StreamLogsResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getLogFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.StreamLogsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.Log log_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Log, com.github.iotexproject.grpc.types.Log.Builder, com.github.iotexproject.grpc.types.LogOrBuilder> logBuilder_;
/**
* .iotextypes.Log log = 1;
* @return Whether the log field is set.
*/
public boolean hasLog() {
- return ((bitField0_ & 0x00000001) != 0);
+ return logBuilder_ != null || log_ != null;
}
/**
* .iotextypes.Log log = 1;
@@ -414,11 +464,11 @@ public Builder setLog(com.github.iotexproject.grpc.types.Log value) {
throw new NullPointerException();
}
log_ = value;
+ onChanged();
} else {
logBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -428,11 +478,11 @@ public Builder setLog(
com.github.iotexproject.grpc.types.Log.Builder builderForValue) {
if (logBuilder_ == null) {
log_ = builderForValue.build();
+ onChanged();
} else {
logBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -440,40 +490,38 @@ public Builder setLog(
*/
public Builder mergeLog(com.github.iotexproject.grpc.types.Log value) {
if (logBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- log_ != null &&
- log_ != com.github.iotexproject.grpc.types.Log.getDefaultInstance()) {
- getLogBuilder().mergeFrom(value);
+ if (log_ != null) {
+ log_ =
+ com.github.iotexproject.grpc.types.Log.newBuilder(log_).mergeFrom(value).buildPartial();
} else {
log_ = value;
}
+ onChanged();
} else {
logBuilder_.mergeFrom(value);
}
- if (log_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.Log log = 1;
*/
public Builder clearLog() {
- bitField0_ = (bitField0_ & ~0x00000001);
- log_ = null;
- if (logBuilder_ != null) {
- logBuilder_.dispose();
+ if (logBuilder_ == null) {
+ log_ = null;
+ onChanged();
+ } else {
+ log_ = null;
logBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.Log log = 1;
*/
public com.github.iotexproject.grpc.types.Log.Builder getLogBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getLogFieldBuilder().getBuilder();
}
@@ -491,11 +539,11 @@ public com.github.iotexproject.grpc.types.LogOrBuilder getLogOrBuilder() {
/**
* .iotextypes.Log log = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Log, com.github.iotexproject.grpc.types.Log.Builder, com.github.iotexproject.grpc.types.LogOrBuilder>
getLogFieldBuilder() {
if (logBuilder_ == null) {
- logBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ logBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Log, com.github.iotexproject.grpc.types.Log.Builder, com.github.iotexproject.grpc.types.LogOrBuilder>(
getLog(),
getParentForChildren(),
@@ -504,6 +552,18 @@ public com.github.iotexproject.grpc.types.LogOrBuilder getLogOrBuilder() {
}
return logBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.StreamLogsResponse)
}
@@ -525,18 +585,7 @@ public StreamLogsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new StreamLogsResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponseOrBuilder.java
index 2d41752..3fad1b6 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/StreamLogsResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequest.java b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequest.java
index a5b6d9d..f02582e 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,73 @@
* Protobuf type {@code iotexapi.SuggestGasPriceRequest}
*/
public final class SuggestGasPriceRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.SuggestGasPriceRequest)
SuggestGasPriceRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- SuggestGasPriceRequest.class.getName());
- }
// Use SuggestGasPriceRequest.newBuilder() to construct.
- private SuggestGasPriceRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private SuggestGasPriceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SuggestGasPriceRequest() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SuggestGasPriceRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SuggestGasPriceRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SuggestGasPriceRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SuggestGasPriceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -56,7 +94,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -65,7 +103,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -80,7 +118,7 @@ public boolean equals(final java.lang.Object obj) {
}
com.github.iotexproject.grpc.api.SuggestGasPriceRequest other = (com.github.iotexproject.grpc.api.SuggestGasPriceRequest) obj;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -91,7 +129,7 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -130,41 +168,39 @@ public static com.github.iotexproject.grpc.api.SuggestGasPriceRequest parseFrom(
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.SuggestGasPriceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.SuggestGasPriceRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -184,7 +220,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -192,7 +228,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.SuggestGasPriceRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.SuggestGasPriceRequest)
com.github.iotexproject.grpc.api.SuggestGasPriceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -201,7 +237,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SuggestGasPriceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -210,13 +246,18 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.SuggestGasPriceRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
@@ -251,6 +292,38 @@ public com.github.iotexproject.grpc.api.SuggestGasPriceRequest buildPartial() {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.SuggestGasPriceRequest) {
@@ -263,7 +336,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.github.iotexproject.grpc.api.SuggestGasPriceRequest other) {
if (other == com.github.iotexproject.grpc.api.SuggestGasPriceRequest.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -278,32 +351,31 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.SuggestGasPriceRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.SuggestGasPriceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.SuggestGasPriceRequest)
}
@@ -325,18 +397,7 @@ public SuggestGasPriceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new SuggestGasPriceRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequestOrBuilder.java
index f5caa53..78d3c1f 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponse.java b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponse.java
index 9c8a4b2..2b74b03 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,33 +7,78 @@
* Protobuf type {@code iotexapi.SuggestGasPriceResponse}
*/
public final class SuggestGasPriceResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.SuggestGasPriceResponse)
SuggestGasPriceResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- SuggestGasPriceResponse.class.getName());
- }
// Use SuggestGasPriceResponse.newBuilder() to construct.
- private SuggestGasPriceResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private SuggestGasPriceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SuggestGasPriceResponse() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SuggestGasPriceResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SuggestGasPriceResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ gasPrice_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SuggestGasPriceResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SuggestGasPriceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +86,7 @@ private SuggestGasPriceResponse() {
}
public static final int GASPRICE_FIELD_NUMBER = 1;
- private long gasPrice_ = 0L;
+ private long gasPrice_;
/**
* uint64 gasPrice = 1;
* @return The gasPrice.
@@ -70,7 +113,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (gasPrice_ != 0L) {
output.writeUInt64(1, gasPrice_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -83,7 +126,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, gasPrice_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -100,7 +143,7 @@ public boolean equals(final java.lang.Object obj) {
if (getGasPrice()
!= other.getGasPrice()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (37 * hash) + GASPRICE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasPrice());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.api.SuggestGasPriceResponse parseFrom
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.SuggestGasPriceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.SuggestGasPriceResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.SuggestGasPriceResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.SuggestGasPriceResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.SuggestGasPriceResponse)
com.github.iotexproject.grpc.api.SuggestGasPriceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_SuggestGasPriceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.SuggestGasPriceResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
gasPrice_ = 0L;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.api.SuggestGasPriceResponse build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.SuggestGasPriceResponse buildPartial() {
com.github.iotexproject.grpc.api.SuggestGasPriceResponse result = new com.github.iotexproject.grpc.api.SuggestGasPriceResponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.gasPrice_ = gasPrice_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.SuggestGasPriceResponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.gasPrice_ = gasPrice_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.SuggestGasPriceResponse) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.SuggestGasPriceRespons
if (other.getGasPrice() != 0L) {
setGasPrice(other.getGasPrice());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.SuggestGasPriceResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- gasPrice_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.SuggestGasPriceResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long gasPrice_ ;
/**
@@ -362,9 +414,8 @@ public long getGasPrice() {
* @return This builder for chaining.
*/
public Builder setGasPrice(long value) {
-
+
gasPrice_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +424,23 @@ public Builder setGasPrice(long value) {
* @return This builder for chaining.
*/
public Builder clearGasPrice() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
gasPrice_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.SuggestGasPriceResponse)
}
@@ -399,18 +462,7 @@ public SuggestGasPriceResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new SuggestGasPriceResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponseOrBuilder.java
index 3945688..c2ae562 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/SuggestGasPriceResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/Topics.java b/src/main/java/com/github/iotexproject/grpc/api/Topics.java
index ea6dda8..33a1afb 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/Topics.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/Topics.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,86 @@
* Protobuf type {@code iotexapi.Topics}
*/
public final class Topics extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.Topics)
TopicsOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Topics.class.getName());
- }
// Use Topics.newBuilder() to construct.
- private Topics(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private Topics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Topics() {
- topic_ = emptyList(com.google.protobuf.ByteString.class);
+ topic_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Topics();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Topics(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ topic_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ topic_.add(input.readBytes());
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ topic_ = java.util.Collections.unmodifiableList(topic_); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_Topics_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_Topics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,9 +94,7 @@ private Topics() {
}
public static final int TOPIC_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.ProtobufList topic_ =
- emptyList(com.google.protobuf.ByteString.class);
+ private java.util.List topic_;
/**
* repeated bytes topic = 1;
* @return A list containing the topic.
@@ -89,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < topic_.size(); i++) {
output.writeBytes(1, topic_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -107,7 +155,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getTopicList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -124,7 +172,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTopicList()
.equals(other.getTopicList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -139,7 +187,7 @@ public int hashCode() {
hash = (37 * hash) + TOPIC_FIELD_NUMBER;
hash = (53 * hash) + getTopicList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -178,41 +226,39 @@ public static com.github.iotexproject.grpc.api.Topics parseFrom(
}
public static com.github.iotexproject.grpc.api.Topics parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.Topics parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.Topics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.Topics parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.Topics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.Topics parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -232,7 +278,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -240,7 +286,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.Topics}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.Topics)
com.github.iotexproject.grpc.api.TopicsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -249,7 +295,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_Topics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -258,19 +304,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.Topics.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- topic_ = emptyList(com.google.protobuf.ByteString.class);
+ topic_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -297,19 +348,48 @@ public com.github.iotexproject.grpc.api.Topics build() {
@java.lang.Override
public com.github.iotexproject.grpc.api.Topics buildPartial() {
com.github.iotexproject.grpc.api.Topics result = new com.github.iotexproject.grpc.api.Topics(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ topic_ = java.util.Collections.unmodifiableList(topic_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.topic_ = topic_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.Topics result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- topic_.makeImmutable();
- result.topic_ = topic_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.Topics) {
@@ -325,15 +405,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.Topics other) {
if (!other.topic_.isEmpty()) {
if (topic_.isEmpty()) {
topic_ = other.topic_;
- topic_.makeImmutable();
- bitField0_ |= 0x00000001;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTopicIsMutable();
topic_.addAll(other.topic_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -348,46 +427,27 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.Topics parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.google.protobuf.ByteString v = input.readBytes();
- ensureTopicIsMutable();
- topic_.add(v);
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.Topics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
- private com.google.protobuf.Internal.ProtobufList topic_ = emptyList(com.google.protobuf.ByteString.class);
+ private java.util.List topic_ = java.util.Collections.emptyList();
private void ensureTopicIsMutable() {
- if (!topic_.isModifiable()) {
- topic_ = makeMutableCopy(topic_);
- }
- bitField0_ |= 0x00000001;
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ topic_ = new java.util.ArrayList(topic_);
+ bitField0_ |= 0x00000001;
+ }
}
/**
* repeated bytes topic = 1;
@@ -395,8 +455,8 @@ private void ensureTopicIsMutable() {
*/
public java.util.List
getTopicList() {
- topic_.makeImmutable();
- return topic_;
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(topic_) : topic_;
}
/**
* repeated bytes topic = 1;
@@ -421,10 +481,11 @@ public com.google.protobuf.ByteString getTopic(int index) {
*/
public Builder setTopic(
int index, com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureTopicIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopicIsMutable();
topic_.set(index, value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -434,10 +495,11 @@ public Builder setTopic(
* @return This builder for chaining.
*/
public Builder addTopic(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureTopicIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopicIsMutable();
topic_.add(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -451,7 +513,6 @@ public Builder addAllTopic(
ensureTopicIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, topic_);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -460,11 +521,23 @@ public Builder addAllTopic(
* @return This builder for chaining.
*/
public Builder clearTopic() {
- topic_ = emptyList(com.google.protobuf.ByteString.class);
+ topic_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.Topics)
}
@@ -486,18 +559,7 @@ public Topics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Topics(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/TopicsOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/TopicsOrBuilder.java
index a2923d7..75083f1 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/TopicsOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/TopicsOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequest.java b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequest.java
index a91b352..06ca925 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequest.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequest.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,80 @@
* Protobuf type {@code iotexapi.TraceTransactionStructLogsRequest}
*/
public final class TraceTransactionStructLogsRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.TraceTransactionStructLogsRequest)
TraceTransactionStructLogsRequestOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- TraceTransactionStructLogsRequest.class.getName());
- }
// Use TraceTransactionStructLogsRequest.newBuilder() to construct.
- private TraceTransactionStructLogsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private TraceTransactionStructLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TraceTransactionStructLogsRequest() {
actionHash_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TraceTransactionStructLogsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TraceTransactionStructLogsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ actionHash_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_TraceTransactionStructLogsRequest_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_TraceTransactionStructLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,8 +88,7 @@ private TraceTransactionStructLogsRequest() {
}
public static final int ACTIONHASH_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object actionHash_ = "";
+ private volatile java.lang.Object actionHash_;
/**
* string actionHash = 1;
* @return The actionHash.
@@ -96,10 +139,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionHash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -108,10 +151,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actionHash_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, actionHash_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionHash_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionHash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -128,7 +171,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getActionHash()
.equals(other.getActionHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -141,7 +184,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACTIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getActionHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -180,41 +223,39 @@ public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -234,7 +275,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -242,7 +283,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.TraceTransactionStructLogsRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.TraceTransactionStructLogsRequest)
com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -251,7 +292,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_TraceTransactionStructLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -260,19 +301,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
actionHash_ = "";
+
return this;
}
@@ -299,18 +345,43 @@ public com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest build(
@java.lang.Override
public com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest buildPartial() {
com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest result = new com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.actionHash_ = actionHash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionHash_ = actionHash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest) {
@@ -325,10 +396,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.TraceTransactionStruct
if (other == com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest.getDefaultInstance()) return this;
if (!other.getActionHash().isEmpty()) {
actionHash_ = other.actionHash_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -343,38 +413,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- actionHash_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.TraceTransactionStructLogsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object actionHash_ = "";
/**
@@ -417,9 +468,11 @@ public java.lang.String getActionHash() {
*/
public Builder setActionHash(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -428,8 +481,8 @@ public Builder setActionHash(
* @return This builder for chaining.
*/
public Builder clearActionHash() {
+
actionHash_ = getDefaultInstance().getActionHash();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -440,13 +493,27 @@ public Builder clearActionHash() {
*/
public Builder setActionHashBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.TraceTransactionStructLogsRequest)
}
@@ -468,18 +535,7 @@ public TraceTransactionStructLogsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new TraceTransactionStructLogsRequest(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequestOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequestOrBuilder.java
index f392f2f..5d15237 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequestOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsRequestOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponse.java b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponse.java
index 5852af5..9941d51 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponse.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponse.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
@@ -9,34 +7,87 @@
* Protobuf type {@code iotexapi.TraceTransactionStructLogsResponse}
*/
public final class TraceTransactionStructLogsResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexapi.TraceTransactionStructLogsResponse)
TraceTransactionStructLogsResponseOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- TraceTransactionStructLogsResponse.class.getName());
- }
// Use TraceTransactionStructLogsResponse.newBuilder() to construct.
- private TraceTransactionStructLogsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private TraceTransactionStructLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TraceTransactionStructLogsResponse() {
structLogs_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TraceTransactionStructLogsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TraceTransactionStructLogsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ structLogs_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ structLogs_.add(
+ input.readMessage(com.github.iotexproject.grpc.types.TransactionStructLog.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ structLogs_ = java.util.Collections.unmodifiableList(structLogs_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_TraceTransactionStructLogsResponse_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_TraceTransactionStructLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +95,6 @@ private TraceTransactionStructLogsResponse() {
}
public static final int STRUCTLOGS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
private java.util.List structLogs_;
/**
* repeated .iotextypes.TransactionStructLog structLogs = 1;
@@ -101,7 +151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < structLogs_.size(); i++) {
output.writeMessage(1, structLogs_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -114,7 +164,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, structLogs_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -131,7 +181,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getStructLogsList()
.equals(other.getStructLogsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -146,7 +196,7 @@ public int hashCode() {
hash = (37 * hash) + STRUCTLOGS_FIELD_NUMBER;
hash = (53 * hash) + getStructLogsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -185,41 +235,39 @@ public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsRespons
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -239,7 +287,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -247,7 +295,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexapi.TraceTransactionStructLogsResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexapi.TraceTransactionStructLogsResponse)
com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -256,7 +304,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.api.Api.internal_static_iotexapi_TraceTransactionStructLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -265,25 +313,29 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getStructLogsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (structLogsBuilder_ == null) {
structLogs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- structLogs_ = null;
structLogsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -310,13 +362,7 @@ public com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse build
@java.lang.Override
public com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse buildPartial() {
com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse result = new com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse result) {
+ int from_bitField0_ = bitField0_;
if (structLogsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
structLogs_ = java.util.Collections.unmodifiableList(structLogs_);
@@ -326,12 +372,42 @@ private void buildPartialRepeatedFields(com.github.iotexproject.grpc.api.TraceTr
} else {
result.structLogs_ = structLogsBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse result) {
- int from_bitField0_ = bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse) {
@@ -363,14 +439,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.api.TraceTransactionStruct
structLogs_ = other.structLogs_;
bitField0_ = (bitField0_ & ~0x00000001);
structLogsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStructLogsFieldBuilder() : null;
} else {
structLogsBuilder_.addAllMessages(other.structLogs_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -385,43 +461,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.github.iotexproject.grpc.types.TransactionStructLog m =
- input.readMessage(
- com.github.iotexproject.grpc.types.TransactionStructLog.parser(),
- extensionRegistry);
- if (structLogsBuilder_ == null) {
- ensureStructLogsIsMutable();
- structLogs_.add(m);
- } else {
- structLogsBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.api.TraceTransactionStructLogsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -435,7 +485,7 @@ private void ensureStructLogsIsMutable() {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionStructLog, com.github.iotexproject.grpc.types.TransactionStructLog.Builder, com.github.iotexproject.grpc.types.TransactionStructLogOrBuilder> structLogsBuilder_;
/**
@@ -651,11 +701,11 @@ public com.github.iotexproject.grpc.types.TransactionStructLog.Builder addStruct
getStructLogsBuilderList() {
return getStructLogsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionStructLog, com.github.iotexproject.grpc.types.TransactionStructLog.Builder, com.github.iotexproject.grpc.types.TransactionStructLogOrBuilder>
getStructLogsFieldBuilder() {
if (structLogsBuilder_ == null) {
- structLogsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ structLogsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.TransactionStructLog, com.github.iotexproject.grpc.types.TransactionStructLog.Builder, com.github.iotexproject.grpc.types.TransactionStructLogOrBuilder>(
structLogs_,
((bitField0_ & 0x00000001) != 0),
@@ -665,6 +715,18 @@ public com.github.iotexproject.grpc.types.TransactionStructLog.Builder addStruct
}
return structLogsBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexapi.TraceTransactionStructLogsResponse)
}
@@ -686,18 +748,7 @@ public TraceTransactionStructLogsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new TraceTransactionStructLogsResponse(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponseOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponseOrBuilder.java
index 91b1692..25dc73c 100644
--- a/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponseOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/api/TraceTransactionStructLogsResponseOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/api/api.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.api;
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/ActionSync.java b/src/main/java/com/github/iotexproject/grpc/rpc/ActionSync.java
index 5889415..9bd1834 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/ActionSync.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/ActionSync.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
@@ -9,34 +7,86 @@
* Protobuf type {@code iotexrpc.ActionSync}
*/
public final class ActionSync extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexrpc.ActionSync)
ActionSyncOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ActionSync.class.getName());
- }
// Use ActionSync.newBuilder() to construct.
- private ActionSync(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ActionSync(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActionSync() {
- hashes_ = emptyList(com.google.protobuf.ByteString.class);
+ hashes_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ActionSync();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ActionSync(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ hashes_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ hashes_.add(input.readBytes());
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ hashes_ = java.util.Collections.unmodifiableList(hashes_); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_ActionSync_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_ActionSync_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,9 +94,7 @@ private ActionSync() {
}
public static final int HASHES_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.ProtobufList hashes_ =
- emptyList(com.google.protobuf.ByteString.class);
+ private java.util.List hashes_;
/**
* repeated bytes hashes = 1;
* @return A list containing the hashes.
@@ -89,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < hashes_.size(); i++) {
output.writeBytes(1, hashes_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -107,7 +155,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getHashesList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -124,7 +172,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getHashesList()
.equals(other.getHashesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -139,7 +187,7 @@ public int hashCode() {
hash = (37 * hash) + HASHES_FIELD_NUMBER;
hash = (53 * hash) + getHashesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -178,41 +226,39 @@ public static com.github.iotexproject.grpc.rpc.ActionSync parseFrom(
}
public static com.github.iotexproject.grpc.rpc.ActionSync parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.ActionSync parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.rpc.ActionSync parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.rpc.ActionSync parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.rpc.ActionSync parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.ActionSync parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -232,7 +278,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -240,7 +286,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexrpc.ActionSync}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexrpc.ActionSync)
com.github.iotexproject.grpc.rpc.ActionSyncOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -249,7 +295,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_ActionSync_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -258,19 +304,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.rpc.ActionSync.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- hashes_ = emptyList(com.google.protobuf.ByteString.class);
+ hashes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -297,19 +348,48 @@ public com.github.iotexproject.grpc.rpc.ActionSync build() {
@java.lang.Override
public com.github.iotexproject.grpc.rpc.ActionSync buildPartial() {
com.github.iotexproject.grpc.rpc.ActionSync result = new com.github.iotexproject.grpc.rpc.ActionSync(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ hashes_ = java.util.Collections.unmodifiableList(hashes_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.hashes_ = hashes_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.rpc.ActionSync result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- hashes_.makeImmutable();
- result.hashes_ = hashes_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.rpc.ActionSync) {
@@ -325,15 +405,14 @@ public Builder mergeFrom(com.github.iotexproject.grpc.rpc.ActionSync other) {
if (!other.hashes_.isEmpty()) {
if (hashes_.isEmpty()) {
hashes_ = other.hashes_;
- hashes_.makeImmutable();
- bitField0_ |= 0x00000001;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHashesIsMutable();
hashes_.addAll(other.hashes_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -348,46 +427,27 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.rpc.ActionSync parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- com.google.protobuf.ByteString v = input.readBytes();
- ensureHashesIsMutable();
- hashes_.add(v);
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.rpc.ActionSync) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
- private com.google.protobuf.Internal.ProtobufList hashes_ = emptyList(com.google.protobuf.ByteString.class);
+ private java.util.List hashes_ = java.util.Collections.emptyList();
private void ensureHashesIsMutable() {
- if (!hashes_.isModifiable()) {
- hashes_ = makeMutableCopy(hashes_);
- }
- bitField0_ |= 0x00000001;
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ hashes_ = new java.util.ArrayList(hashes_);
+ bitField0_ |= 0x00000001;
+ }
}
/**
* repeated bytes hashes = 1;
@@ -395,8 +455,8 @@ private void ensureHashesIsMutable() {
*/
public java.util.List
getHashesList() {
- hashes_.makeImmutable();
- return hashes_;
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(hashes_) : hashes_;
}
/**
* repeated bytes hashes = 1;
@@ -421,10 +481,11 @@ public com.google.protobuf.ByteString getHashes(int index) {
*/
public Builder setHashes(
int index, com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureHashesIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHashesIsMutable();
hashes_.set(index, value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -434,10 +495,11 @@ public Builder setHashes(
* @return This builder for chaining.
*/
public Builder addHashes(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureHashesIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHashesIsMutable();
hashes_.add(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -451,7 +513,6 @@ public Builder addAllHashes(
ensureHashesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hashes_);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -460,11 +521,23 @@ public Builder addAllHashes(
* @return This builder for chaining.
*/
public Builder clearHashes() {
- hashes_ = emptyList(com.google.protobuf.ByteString.class);
+ hashes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexrpc.ActionSync)
}
@@ -486,18 +559,7 @@ public ActionSync parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ActionSync(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/ActionSyncOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/rpc/ActionSyncOrBuilder.java
index 428f43a..1e7939b 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/ActionSyncOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/ActionSyncOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/BlockSync.java b/src/main/java/com/github/iotexproject/grpc/rpc/BlockSync.java
index d16d9ca..b7feb30 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/BlockSync.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/BlockSync.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
@@ -9,33 +7,83 @@
* Protobuf type {@code iotexrpc.BlockSync}
*/
public final class BlockSync extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexrpc.BlockSync)
BlockSyncOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- BlockSync.class.getName());
- }
// Use BlockSync.newBuilder() to construct.
- private BlockSync(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private BlockSync(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockSync() {
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BlockSync();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BlockSync(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 16: {
+
+ start_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ end_ = input.readUInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_BlockSync_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_BlockSync_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -43,7 +91,7 @@ private BlockSync() {
}
public static final int START_FIELD_NUMBER = 2;
- private long start_ = 0L;
+ private long start_;
/**
* uint64 start = 2;
* @return The start.
@@ -54,7 +102,7 @@ public long getStart() {
}
public static final int END_FIELD_NUMBER = 3;
- private long end_ = 0L;
+ private long end_;
/**
* uint64 end = 3;
* @return The end.
@@ -84,7 +132,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (end_ != 0L) {
output.writeUInt64(3, end_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -101,7 +149,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, end_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -120,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getStart()) return false;
if (getEnd()
!= other.getEnd()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -137,7 +185,7 @@ public int hashCode() {
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnd());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -176,41 +224,39 @@ public static com.github.iotexproject.grpc.rpc.BlockSync parseFrom(
}
public static com.github.iotexproject.grpc.rpc.BlockSync parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.BlockSync parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.rpc.BlockSync parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.rpc.BlockSync parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.rpc.BlockSync parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.BlockSync parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -230,7 +276,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -238,7 +284,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexrpc.BlockSync}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexrpc.BlockSync)
com.github.iotexproject.grpc.rpc.BlockSyncOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -247,7 +293,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_BlockSync_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -256,20 +302,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.rpc.BlockSync.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
start_ = 0L;
+
end_ = 0L;
+
return this;
}
@@ -296,21 +348,44 @@ public com.github.iotexproject.grpc.rpc.BlockSync build() {
@java.lang.Override
public com.github.iotexproject.grpc.rpc.BlockSync buildPartial() {
com.github.iotexproject.grpc.rpc.BlockSync result = new com.github.iotexproject.grpc.rpc.BlockSync(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.start_ = start_;
+ result.end_ = end_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.rpc.BlockSync result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.start_ = start_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.end_ = end_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.rpc.BlockSync) {
@@ -329,7 +404,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.rpc.BlockSync other) {
if (other.getEnd() != 0L) {
setEnd(other.getEnd());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -344,43 +419,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.rpc.BlockSync parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 16: {
- start_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 16
- case 24: {
- end_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 24
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.rpc.BlockSync) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private long start_ ;
/**
@@ -397,9 +448,8 @@ public long getStart() {
* @return This builder for chaining.
*/
public Builder setStart(long value) {
-
+
start_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -408,7 +458,7 @@ public Builder setStart(long value) {
* @return This builder for chaining.
*/
public Builder clearStart() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
start_ = 0L;
onChanged();
return this;
@@ -429,9 +479,8 @@ public long getEnd() {
* @return This builder for chaining.
*/
public Builder setEnd(long value) {
-
+
end_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -440,11 +489,23 @@ public Builder setEnd(long value) {
* @return This builder for chaining.
*/
public Builder clearEnd() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
end_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexrpc.BlockSync)
}
@@ -466,18 +527,7 @@ public BlockSync parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new BlockSync(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/BlockSyncOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/rpc/BlockSyncOrBuilder.java
index d35f575..c399af9 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/BlockSyncOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/BlockSyncOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsg.java b/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsg.java
index a70c27e..0c96b05 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsg.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsg.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotexrpc.BroadcastMsg}
*/
public final class BroadcastMsg extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexrpc.BroadcastMsg)
BroadcastMsgOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- BroadcastMsg.class.getName());
- }
// Use BroadcastMsg.newBuilder() to construct.
- private BroadcastMsg(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private BroadcastMsg(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BroadcastMsg() {
@@ -32,22 +21,105 @@ private BroadcastMsg() {
peerId_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BroadcastMsg();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BroadcastMsg(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ chainId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+ int rawValue = input.readEnum();
+
+ msgType_ = rawValue;
+ break;
+ }
+ case 26: {
+
+ msgBody_ = input.readBytes();
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ peerId_ = s;
+ break;
+ }
+ case 42: {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (timestamp_ != null) {
+ subBuilder = timestamp_.toBuilder();
+ }
+ timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(timestamp_);
+ timestamp_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_BroadcastMsg_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_BroadcastMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.rpc.BroadcastMsg.class, com.github.iotexproject.grpc.rpc.BroadcastMsg.Builder.class);
}
- private int bitField0_;
public static final int CHAIN_ID_FIELD_NUMBER = 1;
- private int chainId_ = 0;
+ private int chainId_;
/**
* uint32 chain_id = 1;
* @return The chainId.
@@ -58,7 +130,7 @@ public int getChainId() {
}
public static final int MSG_TYPE_FIELD_NUMBER = 2;
- private int msgType_ = 0;
+ private int msgType_;
/**
* .iotexrpc.MessageType msg_type = 2;
* @return The enum numeric value on the wire for msgType.
@@ -71,12 +143,13 @@ public int getChainId() {
* @return The msgType.
*/
@java.lang.Override public com.github.iotexproject.grpc.rpc.MessageType getMsgType() {
- com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.forNumber(msgType_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.valueOf(msgType_);
return result == null ? com.github.iotexproject.grpc.rpc.MessageType.UNRECOGNIZED : result;
}
public static final int MSG_BODY_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString msgBody_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString msgBody_;
/**
* bytes msg_body = 3;
* @return The msgBody.
@@ -87,8 +160,7 @@ public com.google.protobuf.ByteString getMsgBody() {
}
public static final int PEER_ID_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private volatile java.lang.Object peerId_ = "";
+ private volatile java.lang.Object peerId_;
/**
* string peer_id = 4;
* @return The peerId.
@@ -133,7 +205,7 @@ public java.lang.String getPeerId() {
*/
@java.lang.Override
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) != 0);
+ return timestamp_ != null;
}
/**
* .google.protobuf.Timestamp timestamp = 5;
@@ -148,7 +220,7 @@ public com.google.protobuf.Timestamp getTimestamp() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
- return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ return getTimestamp();
}
private byte memoizedIsInitialized = -1;
@@ -174,13 +246,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!msgBody_.isEmpty()) {
output.writeBytes(3, msgBody_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerId_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, peerId_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, peerId_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (timestamp_ != null) {
output.writeMessage(5, getTimestamp());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -201,14 +273,14 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, msgBody_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerId_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, peerId_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, peerId_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTimestamp());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -235,7 +307,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -258,7 +330,7 @@ public int hashCode() {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -297,41 +369,39 @@ public static com.github.iotexproject.grpc.rpc.BroadcastMsg parseFrom(
}
public static com.github.iotexproject.grpc.rpc.BroadcastMsg parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.BroadcastMsg parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.rpc.BroadcastMsg parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.rpc.BroadcastMsg parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.rpc.BroadcastMsg parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.BroadcastMsg parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -351,7 +421,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -359,7 +429,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexrpc.BroadcastMsg}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexrpc.BroadcastMsg)
com.github.iotexproject.grpc.rpc.BroadcastMsgOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -368,7 +438,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_BroadcastMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -381,27 +451,30 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getTimestampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
chainId_ = 0;
+
msgType_ = 0;
+
msgBody_ = com.google.protobuf.ByteString.EMPTY;
+
peerId_ = "";
- timestamp_ = null;
- if (timestampBuilder_ != null) {
- timestampBuilder_.dispose();
+
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ } else {
+ timestamp_ = null;
timestampBuilder_ = null;
}
return this;
@@ -430,35 +503,51 @@ public com.github.iotexproject.grpc.rpc.BroadcastMsg build() {
@java.lang.Override
public com.github.iotexproject.grpc.rpc.BroadcastMsg buildPartial() {
com.github.iotexproject.grpc.rpc.BroadcastMsg result = new com.github.iotexproject.grpc.rpc.BroadcastMsg(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.chainId_ = chainId_;
+ result.msgType_ = msgType_;
+ result.msgBody_ = msgBody_;
+ result.peerId_ = peerId_;
+ if (timestampBuilder_ == null) {
+ result.timestamp_ = timestamp_;
+ } else {
+ result.timestamp_ = timestampBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.rpc.BroadcastMsg result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.chainId_ = chainId_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.msgType_ = msgType_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.msgBody_ = msgBody_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.peerId_ = peerId_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.timestamp_ = timestampBuilder_ == null
- ? timestamp_
- : timestampBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.rpc.BroadcastMsg) {
@@ -482,13 +571,12 @@ public Builder mergeFrom(com.github.iotexproject.grpc.rpc.BroadcastMsg other) {
}
if (!other.getPeerId().isEmpty()) {
peerId_ = other.peerId_;
- bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -503,60 +591,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.rpc.BroadcastMsg parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- chainId_ = input.readUInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- msgType_ = input.readEnum();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26: {
- msgBody_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34: {
- peerId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 42: {
- input.readMessage(
- getTimestampFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000010;
- break;
- } // case 42
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.rpc.BroadcastMsg) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private int chainId_ ;
/**
@@ -573,9 +620,8 @@ public int getChainId() {
* @return This builder for chaining.
*/
public Builder setChainId(int value) {
-
+
chainId_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -584,7 +630,7 @@ public Builder setChainId(int value) {
* @return This builder for chaining.
*/
public Builder clearChainId() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
chainId_ = 0;
onChanged();
return this;
@@ -604,8 +650,8 @@ public Builder clearChainId() {
* @return This builder for chaining.
*/
public Builder setMsgTypeValue(int value) {
+
msgType_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -615,7 +661,8 @@ public Builder setMsgTypeValue(int value) {
*/
@java.lang.Override
public com.github.iotexproject.grpc.rpc.MessageType getMsgType() {
- com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.forNumber(msgType_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.valueOf(msgType_);
return result == null ? com.github.iotexproject.grpc.rpc.MessageType.UNRECOGNIZED : result;
}
/**
@@ -627,7 +674,7 @@ public Builder setMsgType(com.github.iotexproject.grpc.rpc.MessageType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+
msgType_ = value.getNumber();
onChanged();
return this;
@@ -637,7 +684,7 @@ public Builder setMsgType(com.github.iotexproject.grpc.rpc.MessageType value) {
* @return This builder for chaining.
*/
public Builder clearMsgType() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
msgType_ = 0;
onChanged();
return this;
@@ -658,9 +705,11 @@ public com.google.protobuf.ByteString getMsgBody() {
* @return This builder for chaining.
*/
public Builder setMsgBody(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
msgBody_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -669,7 +718,7 @@ public Builder setMsgBody(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearMsgBody() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
msgBody_ = getDefaultInstance().getMsgBody();
onChanged();
return this;
@@ -716,9 +765,11 @@ public java.lang.String getPeerId() {
*/
public Builder setPeerId(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
peerId_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -727,8 +778,8 @@ public Builder setPeerId(
* @return This builder for chaining.
*/
public Builder clearPeerId() {
+
peerId_ = getDefaultInstance().getPeerId();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -739,23 +790,25 @@ public Builder clearPeerId() {
*/
public Builder setPeerIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
peerId_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
* .google.protobuf.Timestamp timestamp = 5;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000010) != 0);
+ return timestampBuilder_ != null || timestamp_ != null;
}
/**
* .google.protobuf.Timestamp timestamp = 5;
@@ -777,11 +830,11 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
timestamp_ = value;
+ onChanged();
} else {
timestampBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+
return this;
}
/**
@@ -791,11 +844,11 @@ public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
+ onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000010;
- onChanged();
+
return this;
}
/**
@@ -803,40 +856,38 @@ public Builder setTimestamp(
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0) &&
- timestamp_ != null &&
- timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- getTimestampBuilder().mergeFrom(value);
+ if (timestamp_ != null) {
+ timestamp_ =
+ com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
+ onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
- if (timestamp_ != null) {
- bitField0_ |= 0x00000010;
- onChanged();
- }
+
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 5;
*/
public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000010);
- timestamp_ = null;
- if (timestampBuilder_ != null) {
- timestampBuilder_.dispose();
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ onChanged();
+ } else {
+ timestamp_ = null;
timestampBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 5;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
- bitField0_ |= 0x00000010;
+
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
@@ -854,11 +905,11 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
/**
* .google.protobuf.Timestamp timestamp = 5;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
- timestampBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
@@ -867,6 +918,18 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
}
return timestampBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexrpc.BroadcastMsg)
}
@@ -888,18 +951,7 @@ public BroadcastMsg parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new BroadcastMsg(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsgOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsgOrBuilder.java
index 790b96b..dfcd0d4 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsgOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/BroadcastMsgOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/MessageType.java b/src/main/java/com/github/iotexproject/grpc/rpc/MessageType.java
index c00176d..9b4695d 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/MessageType.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/MessageType.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
@@ -57,15 +55,6 @@ public enum MessageType
UNRECOGNIZED(-1),
;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- MessageType.class.getName());
- }
/**
* UNKNOWN = 0;
*/
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/Rpc.java b/src/main/java/com/github/iotexproject/grpc/rpc/Rpc.java
index 41c0fc1..934509e 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/Rpc.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/Rpc.java
@@ -1,21 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
public final class Rpc {
private Rpc() {}
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Rpc.class.getName());
- }
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
@@ -28,22 +17,22 @@ public static void registerAllExtensions(
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexrpc_BlockSync_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexrpc_BlockSync_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexrpc_ActionSync_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexrpc_ActionSync_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexrpc_BroadcastMsg_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexrpc_BroadcastMsg_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotexrpc_UnicastMsg_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotexrpc_UnicastMsg_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -82,28 +71,27 @@ public static void registerAllExtensions(
internal_static_iotexrpc_BlockSync_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_iotexrpc_BlockSync_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexrpc_BlockSync_descriptor,
new java.lang.String[] { "Start", "End", });
internal_static_iotexrpc_ActionSync_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_iotexrpc_ActionSync_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexrpc_ActionSync_descriptor,
new java.lang.String[] { "Hashes", });
internal_static_iotexrpc_BroadcastMsg_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_iotexrpc_BroadcastMsg_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexrpc_BroadcastMsg_descriptor,
new java.lang.String[] { "ChainId", "MsgType", "MsgBody", "PeerId", "Timestamp", });
internal_static_iotexrpc_UnicastMsg_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_iotexrpc_UnicastMsg_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotexrpc_UnicastMsg_descriptor,
new java.lang.String[] { "ChainId", "Addr", "MsgType", "MsgBody", "PeerId", "Timestamp", });
- descriptor.resolveAllFeaturesImmutable();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsg.java b/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsg.java
index 53c13f7..9b4233e 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsg.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsg.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotexrpc.UnicastMsg}
*/
public final class UnicastMsg extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotexrpc.UnicastMsg)
UnicastMsgOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- UnicastMsg.class.getName());
- }
// Use UnicastMsg.newBuilder() to construct.
- private UnicastMsg(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private UnicastMsg(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnicastMsg() {
@@ -33,22 +22,111 @@ private UnicastMsg() {
peerId_ = "";
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new UnicastMsg();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private UnicastMsg(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ chainId_ = input.readUInt32();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ addr_ = s;
+ break;
+ }
+ case 24: {
+ int rawValue = input.readEnum();
+
+ msgType_ = rawValue;
+ break;
+ }
+ case 34: {
+
+ msgBody_ = input.readBytes();
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ peerId_ = s;
+ break;
+ }
+ case 50: {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (timestamp_ != null) {
+ subBuilder = timestamp_.toBuilder();
+ }
+ timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(timestamp_);
+ timestamp_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_UnicastMsg_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_UnicastMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.rpc.UnicastMsg.class, com.github.iotexproject.grpc.rpc.UnicastMsg.Builder.class);
}
- private int bitField0_;
public static final int CHAIN_ID_FIELD_NUMBER = 1;
- private int chainId_ = 0;
+ private int chainId_;
/**
* uint32 chain_id = 1;
* @return The chainId.
@@ -59,8 +137,7 @@ public int getChainId() {
}
public static final int ADDR_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object addr_ = "";
+ private volatile java.lang.Object addr_;
/**
* string addr = 2;
* @return The addr.
@@ -98,7 +175,7 @@ public java.lang.String getAddr() {
}
public static final int MSG_TYPE_FIELD_NUMBER = 3;
- private int msgType_ = 0;
+ private int msgType_;
/**
* .iotexrpc.MessageType msg_type = 3;
* @return The enum numeric value on the wire for msgType.
@@ -111,12 +188,13 @@ public java.lang.String getAddr() {
* @return The msgType.
*/
@java.lang.Override public com.github.iotexproject.grpc.rpc.MessageType getMsgType() {
- com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.forNumber(msgType_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.valueOf(msgType_);
return result == null ? com.github.iotexproject.grpc.rpc.MessageType.UNRECOGNIZED : result;
}
public static final int MSG_BODY_FIELD_NUMBER = 4;
- private com.google.protobuf.ByteString msgBody_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString msgBody_;
/**
* bytes msg_body = 4;
* @return The msgBody.
@@ -127,8 +205,7 @@ public com.google.protobuf.ByteString getMsgBody() {
}
public static final int PEER_ID_FIELD_NUMBER = 5;
- @SuppressWarnings("serial")
- private volatile java.lang.Object peerId_ = "";
+ private volatile java.lang.Object peerId_;
/**
* string peer_id = 5;
* @return The peerId.
@@ -173,7 +250,7 @@ public java.lang.String getPeerId() {
*/
@java.lang.Override
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) != 0);
+ return timestamp_ != null;
}
/**
* .google.protobuf.Timestamp timestamp = 6;
@@ -188,7 +265,7 @@ public com.google.protobuf.Timestamp getTimestamp() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
- return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ return getTimestamp();
}
private byte memoizedIsInitialized = -1;
@@ -208,8 +285,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (chainId_ != 0) {
output.writeUInt32(1, chainId_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(addr_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, addr_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addr_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addr_);
}
if (msgType_ != com.github.iotexproject.grpc.rpc.MessageType.UNKNOWN.getNumber()) {
output.writeEnum(3, msgType_);
@@ -217,13 +294,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!msgBody_.isEmpty()) {
output.writeBytes(4, msgBody_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerId_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 5, peerId_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, peerId_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (timestamp_ != null) {
output.writeMessage(6, getTimestamp());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -236,8 +313,8 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, chainId_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(addr_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, addr_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addr_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, addr_);
}
if (msgType_ != com.github.iotexproject.grpc.rpc.MessageType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
@@ -247,14 +324,14 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, msgBody_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerId_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(5, peerId_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, peerId_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTimestamp());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -283,7 +360,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -308,7 +385,7 @@ public int hashCode() {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -347,41 +424,39 @@ public static com.github.iotexproject.grpc.rpc.UnicastMsg parseFrom(
}
public static com.github.iotexproject.grpc.rpc.UnicastMsg parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.UnicastMsg parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.rpc.UnicastMsg parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.rpc.UnicastMsg parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.rpc.UnicastMsg parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.rpc.UnicastMsg parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -401,7 +476,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -409,7 +484,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotexrpc.UnicastMsg}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotexrpc.UnicastMsg)
com.github.iotexproject.grpc.rpc.UnicastMsgOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -418,7 +493,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.rpc.Rpc.internal_static_iotexrpc_UnicastMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -431,28 +506,32 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getTimestampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
chainId_ = 0;
+
addr_ = "";
+
msgType_ = 0;
+
msgBody_ = com.google.protobuf.ByteString.EMPTY;
+
peerId_ = "";
- timestamp_ = null;
- if (timestampBuilder_ != null) {
- timestampBuilder_.dispose();
+
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ } else {
+ timestamp_ = null;
timestampBuilder_ = null;
}
return this;
@@ -481,38 +560,52 @@ public com.github.iotexproject.grpc.rpc.UnicastMsg build() {
@java.lang.Override
public com.github.iotexproject.grpc.rpc.UnicastMsg buildPartial() {
com.github.iotexproject.grpc.rpc.UnicastMsg result = new com.github.iotexproject.grpc.rpc.UnicastMsg(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.chainId_ = chainId_;
+ result.addr_ = addr_;
+ result.msgType_ = msgType_;
+ result.msgBody_ = msgBody_;
+ result.peerId_ = peerId_;
+ if (timestampBuilder_ == null) {
+ result.timestamp_ = timestamp_;
+ } else {
+ result.timestamp_ = timestampBuilder_.build();
+ }
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.rpc.UnicastMsg result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.chainId_ = chainId_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.addr_ = addr_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.msgType_ = msgType_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.msgBody_ = msgBody_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.peerId_ = peerId_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.timestamp_ = timestampBuilder_ == null
- ? timestamp_
- : timestampBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.rpc.UnicastMsg) {
@@ -530,7 +623,6 @@ public Builder mergeFrom(com.github.iotexproject.grpc.rpc.UnicastMsg other) {
}
if (!other.getAddr().isEmpty()) {
addr_ = other.addr_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (other.msgType_ != 0) {
@@ -541,13 +633,12 @@ public Builder mergeFrom(com.github.iotexproject.grpc.rpc.UnicastMsg other) {
}
if (!other.getPeerId().isEmpty()) {
peerId_ = other.peerId_;
- bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -562,65 +653,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.rpc.UnicastMsg parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- chainId_ = input.readUInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 18: {
- addr_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 24: {
- msgType_ = input.readEnum();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- case 34: {
- msgBody_ = input.readBytes();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 42: {
- peerId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 42
- case 50: {
- input.readMessage(
- getTimestampFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000020;
- break;
- } // case 50
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.rpc.UnicastMsg) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private int chainId_ ;
/**
@@ -637,9 +682,8 @@ public int getChainId() {
* @return This builder for chaining.
*/
public Builder setChainId(int value) {
-
+
chainId_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -648,7 +692,7 @@ public Builder setChainId(int value) {
* @return This builder for chaining.
*/
public Builder clearChainId() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
chainId_ = 0;
onChanged();
return this;
@@ -695,9 +739,11 @@ public java.lang.String getAddr() {
*/
public Builder setAddr(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
addr_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -706,8 +752,8 @@ public Builder setAddr(
* @return This builder for chaining.
*/
public Builder clearAddr() {
+
addr_ = getDefaultInstance().getAddr();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -718,10 +764,12 @@ public Builder clearAddr() {
*/
public Builder setAddrBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
addr_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -740,8 +788,8 @@ public Builder setAddrBytes(
* @return This builder for chaining.
*/
public Builder setMsgTypeValue(int value) {
+
msgType_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -751,7 +799,8 @@ public Builder setMsgTypeValue(int value) {
*/
@java.lang.Override
public com.github.iotexproject.grpc.rpc.MessageType getMsgType() {
- com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.forNumber(msgType_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.rpc.MessageType result = com.github.iotexproject.grpc.rpc.MessageType.valueOf(msgType_);
return result == null ? com.github.iotexproject.grpc.rpc.MessageType.UNRECOGNIZED : result;
}
/**
@@ -763,7 +812,7 @@ public Builder setMsgType(com.github.iotexproject.grpc.rpc.MessageType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000004;
+
msgType_ = value.getNumber();
onChanged();
return this;
@@ -773,7 +822,7 @@ public Builder setMsgType(com.github.iotexproject.grpc.rpc.MessageType value) {
* @return This builder for chaining.
*/
public Builder clearMsgType() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
msgType_ = 0;
onChanged();
return this;
@@ -794,9 +843,11 @@ public com.google.protobuf.ByteString getMsgBody() {
* @return This builder for chaining.
*/
public Builder setMsgBody(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
msgBody_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -805,7 +856,7 @@ public Builder setMsgBody(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearMsgBody() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
msgBody_ = getDefaultInstance().getMsgBody();
onChanged();
return this;
@@ -852,9 +903,11 @@ public java.lang.String getPeerId() {
*/
public Builder setPeerId(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
peerId_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -863,8 +916,8 @@ public Builder setPeerId(
* @return This builder for chaining.
*/
public Builder clearPeerId() {
+
peerId_ = getDefaultInstance().getPeerId();
- bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -875,23 +928,25 @@ public Builder clearPeerId() {
*/
public Builder setPeerIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
peerId_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
* .google.protobuf.Timestamp timestamp = 6;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000020) != 0);
+ return timestampBuilder_ != null || timestamp_ != null;
}
/**
* .google.protobuf.Timestamp timestamp = 6;
@@ -913,11 +968,11 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
timestamp_ = value;
+ onChanged();
} else {
timestampBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000020;
- onChanged();
+
return this;
}
/**
@@ -927,11 +982,11 @@ public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
+ onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000020;
- onChanged();
+
return this;
}
/**
@@ -939,40 +994,38 @@ public Builder setTimestamp(
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0) &&
- timestamp_ != null &&
- timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- getTimestampBuilder().mergeFrom(value);
+ if (timestamp_ != null) {
+ timestamp_ =
+ com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
+ onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
- if (timestamp_ != null) {
- bitField0_ |= 0x00000020;
- onChanged();
- }
+
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 6;
*/
public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000020);
- timestamp_ = null;
- if (timestampBuilder_ != null) {
- timestampBuilder_.dispose();
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ onChanged();
+ } else {
+ timestamp_ = null;
timestampBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 6;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
- bitField0_ |= 0x00000020;
+
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
@@ -990,11 +1043,11 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
/**
* .google.protobuf.Timestamp timestamp = 6;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
- timestampBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
@@ -1003,6 +1056,18 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
}
return timestampBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotexrpc.UnicastMsg)
}
@@ -1024,18 +1089,7 @@ public UnicastMsg parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new UnicastMsg(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsgOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsgOrBuilder.java
index 09e99f5..a3fe3a0 100644
--- a/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsgOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/rpc/UnicastMsgOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rpc/rpc.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.rpc;
diff --git a/src/main/java/com/github/iotexproject/grpc/testing/TestPayload.java b/src/main/java/com/github/iotexproject/grpc/testing/TestPayload.java
index b2e2692..d69d048 100644
--- a/src/main/java/com/github/iotexproject/grpc/testing/TestPayload.java
+++ b/src/main/java/com/github/iotexproject/grpc/testing/TestPayload.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/testing/testing.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.testing;
@@ -9,34 +7,79 @@
* Protobuf type {@code testingpb.TestPayload}
*/
public final class TestPayload extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:testingpb.TestPayload)
TestPayloadOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- TestPayload.class.getName());
- }
// Use TestPayload.newBuilder() to construct.
- private TestPayload(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private TestPayload(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestPayload() {
msgBody_ = com.google.protobuf.ByteString.EMPTY;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TestPayload();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TestPayload(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+
+ msgBody_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.testing.Testing.internal_static_testingpb_TestPayload_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.testing.Testing.internal_static_testingpb_TestPayload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +87,7 @@ private TestPayload() {
}
public static final int MSG_BODY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString msgBody_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString msgBody_;
/**
* bytes msg_body = 1;
* @return The msgBody.
@@ -71,7 +114,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!msgBody_.isEmpty()) {
output.writeBytes(1, msgBody_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -84,7 +127,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, msgBody_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -101,7 +144,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getMsgBody()
.equals(other.getMsgBody())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MSG_BODY_FIELD_NUMBER;
hash = (53 * hash) + getMsgBody().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.testing.TestPayload parseFrom(
}
public static com.github.iotexproject.grpc.testing.TestPayload parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.testing.TestPayload parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.testing.TestPayload parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.testing.TestPayload parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.testing.TestPayload parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.testing.TestPayload parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code testingpb.TestPayload}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:testingpb.TestPayload)
com.github.iotexproject.grpc.testing.TestPayloadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.testing.Testing.internal_static_testingpb_TestPayload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.testing.TestPayload.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
msgBody_ = com.google.protobuf.ByteString.EMPTY;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.testing.TestPayload build() {
@java.lang.Override
public com.github.iotexproject.grpc.testing.TestPayload buildPartial() {
com.github.iotexproject.grpc.testing.TestPayload result = new com.github.iotexproject.grpc.testing.TestPayload(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.msgBody_ = msgBody_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.testing.TestPayload result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.msgBody_ = msgBody_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.testing.TestPayload) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.testing.TestPayload other)
if (other.getMsgBody() != com.google.protobuf.ByteString.EMPTY) {
setMsgBody(other.getMsgBody());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.testing.TestPayload parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- msgBody_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.testing.TestPayload) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.google.protobuf.ByteString msgBody_ = com.google.protobuf.ByteString.EMPTY;
/**
@@ -362,9 +414,11 @@ public com.google.protobuf.ByteString getMsgBody() {
* @return This builder for chaining.
*/
public Builder setMsgBody(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
msgBody_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +427,23 @@ public Builder setMsgBody(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearMsgBody() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
msgBody_ = getDefaultInstance().getMsgBody();
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:testingpb.TestPayload)
}
@@ -399,18 +465,7 @@ public TestPayload parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new TestPayload(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/testing/TestPayloadOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/testing/TestPayloadOrBuilder.java
index d3fc2a1..5d0bb78 100644
--- a/src/main/java/com/github/iotexproject/grpc/testing/TestPayloadOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/testing/TestPayloadOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/testing/testing.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.testing;
diff --git a/src/main/java/com/github/iotexproject/grpc/testing/Testing.java b/src/main/java/com/github/iotexproject/grpc/testing/Testing.java
index 625ea8c..735cbe1 100644
--- a/src/main/java/com/github/iotexproject/grpc/testing/Testing.java
+++ b/src/main/java/com/github/iotexproject/grpc/testing/Testing.java
@@ -1,21 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/testing/testing.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.testing;
public final class Testing {
private Testing() {}
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Testing.class.getName());
- }
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
@@ -28,7 +17,7 @@ public static void registerAllExtensions(
static final com.google.protobuf.Descriptors.Descriptor
internal_static_testingpb_TestPayload_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_testingpb_TestPayload_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -52,10 +41,9 @@ public static void registerAllExtensions(
internal_static_testingpb_TestPayload_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_testingpb_TestPayload_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_testingpb_TestPayload_descriptor,
new java.lang.String[] { "MsgBody", });
- descriptor.resolveAllFeaturesImmutable();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/src/main/java/com/github/iotexproject/grpc/types/AccessTuple.java b/src/main/java/com/github/iotexproject/grpc/types/AccessTuple.java
index 3291259..5c0f8bc 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/AccessTuple.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/AccessTuple.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -9,36 +7,94 @@
* Protobuf type {@code iotextypes.AccessTuple}
*/
public final class AccessTuple extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotextypes.AccessTuple)
AccessTupleOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- AccessTuple.class.getName());
- }
// Use AccessTuple.newBuilder() to construct.
- private AccessTuple(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private AccessTuple(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccessTuple() {
address_ = "";
- storageKeys_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ storageKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AccessTuple();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AccessTuple(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ address_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ storageKeys_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ storageKeys_.add(s);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ storageKeys_ = storageKeys_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_AccessTuple_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_AccessTuple_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -46,8 +102,7 @@ private AccessTuple() {
}
public static final int ADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object address_ = "";
+ private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
@@ -85,9 +140,7 @@ public java.lang.String getAddress() {
}
public static final int STORAGEKEYS_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList storageKeys_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList storageKeys_;
/**
* repeated string storageKeys = 2;
* @return A list containing the storageKeys.
@@ -135,13 +188,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
for (int i = 0; i < storageKeys_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, storageKeys_.getRaw(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, storageKeys_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -150,8 +203,8 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
{
int dataSize = 0;
@@ -161,7 +214,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getStorageKeysList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -180,7 +233,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getAddress())) return false;
if (!getStorageKeysList()
.equals(other.getStorageKeysList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -197,7 +250,7 @@ public int hashCode() {
hash = (37 * hash) + STORAGEKEYS_FIELD_NUMBER;
hash = (53 * hash) + getStorageKeysList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -236,41 +289,39 @@ public static com.github.iotexproject.grpc.types.AccessTuple parseFrom(
}
public static com.github.iotexproject.grpc.types.AccessTuple parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.AccessTuple parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.types.AccessTuple parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.types.AccessTuple parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.types.AccessTuple parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.AccessTuple parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -290,7 +341,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -298,7 +349,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotextypes.AccessTuple}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotextypes.AccessTuple)
com.github.iotexproject.grpc.types.AccessTupleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -307,7 +358,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_AccessTuple_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -316,21 +367,26 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.types.AccessTuple.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
address_ = "";
- storageKeys_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+
+ storageKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -357,22 +413,49 @@ public com.github.iotexproject.grpc.types.AccessTuple build() {
@java.lang.Override
public com.github.iotexproject.grpc.types.AccessTuple buildPartial() {
com.github.iotexproject.grpc.types.AccessTuple result = new com.github.iotexproject.grpc.types.AccessTuple(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ int from_bitField0_ = bitField0_;
+ result.address_ = address_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ storageKeys_ = storageKeys_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.storageKeys_ = storageKeys_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.types.AccessTuple result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.address_ = address_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- storageKeys_.makeImmutable();
- result.storageKeys_ = storageKeys_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.types.AccessTuple) {
@@ -387,20 +470,19 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.AccessTuple other) {
if (other == com.github.iotexproject.grpc.types.AccessTuple.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.storageKeys_.isEmpty()) {
if (storageKeys_.isEmpty()) {
storageKeys_ = other.storageKeys_;
- bitField0_ |= 0x00000002;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStorageKeysIsMutable();
storageKeys_.addAll(other.storageKeys_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -415,41 +497,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.types.AccessTuple parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- address_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
- ensureStorageKeysIsMutable();
- storageKeys_.add(s);
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.types.AccessTuple) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -495,9 +553,11 @@ public java.lang.String getAddress() {
*/
public Builder setAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -506,8 +566,8 @@ public Builder setAddress(
* @return This builder for chaining.
*/
public Builder clearAddress() {
+
address_ = getDefaultInstance().getAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -518,21 +578,22 @@ public Builder clearAddress() {
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList storageKeys_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList storageKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStorageKeysIsMutable() {
- if (!storageKeys_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
storageKeys_ = new com.google.protobuf.LazyStringArrayList(storageKeys_);
- }
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
+ }
}
/**
* repeated string storageKeys = 2;
@@ -540,8 +601,7 @@ private void ensureStorageKeysIsMutable() {
*/
public com.google.protobuf.ProtocolStringList
getStorageKeysList() {
- storageKeys_.makeImmutable();
- return storageKeys_;
+ return storageKeys_.getUnmodifiableView();
}
/**
* repeated string storageKeys = 2;
@@ -575,10 +635,11 @@ public java.lang.String getStorageKeys(int index) {
*/
public Builder setStorageKeys(
int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureStorageKeysIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStorageKeysIsMutable();
storageKeys_.set(index, value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -589,10 +650,11 @@ public Builder setStorageKeys(
*/
public Builder addStorageKeys(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureStorageKeysIsMutable();
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStorageKeysIsMutable();
storageKeys_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -606,7 +668,6 @@ public Builder addAllStorageKeys(
ensureStorageKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, storageKeys_);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -615,9 +676,8 @@ public Builder addAllStorageKeys(
* @return This builder for chaining.
*/
public Builder clearStorageKeys() {
- storageKeys_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);;
+ storageKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -628,14 +688,27 @@ public Builder clearStorageKeys() {
*/
public Builder addStorageKeysBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
ensureStorageKeysIsMutable();
storageKeys_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotextypes.AccessTuple)
}
@@ -657,18 +730,7 @@ public AccessTuple parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new AccessTuple(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/types/AccessTupleOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/types/AccessTupleOrBuilder.java
index ac42dd5..38b7f56 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/AccessTupleOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/AccessTupleOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
diff --git a/src/main/java/com/github/iotexproject/grpc/types/AccountMeta.java b/src/main/java/com/github/iotexproject/grpc/types/AccountMeta.java
index 447b855..249a2c8 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/AccountMeta.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/AccountMeta.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/blockchain.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -13,21 +11,12 @@
* Protobuf type {@code iotextypes.AccountMeta}
*/
public final class AccountMeta extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotextypes.AccountMeta)
AccountMetaOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- AccountMeta.class.getName());
- }
// Use AccountMeta.newBuilder() to construct.
- private AccountMeta(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private AccountMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountMeta() {
@@ -36,13 +25,99 @@ private AccountMeta() {
contractByteCode_ = com.google.protobuf.ByteString.EMPTY;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AccountMeta();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AccountMeta(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ address_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ balance_ = s;
+ break;
+ }
+ case 24: {
+
+ nonce_ = input.readUInt64();
+ break;
+ }
+ case 32: {
+
+ pendingNonce_ = input.readUInt64();
+ break;
+ }
+ case 40: {
+
+ numActions_ = input.readUInt64();
+ break;
+ }
+ case 48: {
+
+ isContract_ = input.readBool();
+ break;
+ }
+ case 58: {
+
+ contractByteCode_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.types.Blockchain.internal_static_iotextypes_AccountMeta_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.Blockchain.internal_static_iotextypes_AccountMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -50,8 +125,7 @@ private AccountMeta() {
}
public static final int ADDRESS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object address_ = "";
+ private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
@@ -89,8 +163,7 @@ public java.lang.String getAddress() {
}
public static final int BALANCE_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object balance_ = "";
+ private volatile java.lang.Object balance_;
/**
* string balance = 2;
* @return The balance.
@@ -128,7 +201,7 @@ public java.lang.String getBalance() {
}
public static final int NONCE_FIELD_NUMBER = 3;
- private long nonce_ = 0L;
+ private long nonce_;
/**
* uint64 nonce = 3;
* @return The nonce.
@@ -139,7 +212,7 @@ public long getNonce() {
}
public static final int PENDINGNONCE_FIELD_NUMBER = 4;
- private long pendingNonce_ = 0L;
+ private long pendingNonce_;
/**
* uint64 pendingNonce = 4;
* @return The pendingNonce.
@@ -150,7 +223,7 @@ public long getPendingNonce() {
}
public static final int NUMACTIONS_FIELD_NUMBER = 5;
- private long numActions_ = 0L;
+ private long numActions_;
/**
* uint64 numActions = 5;
* @return The numActions.
@@ -161,7 +234,7 @@ public long getNumActions() {
}
public static final int ISCONTRACT_FIELD_NUMBER = 6;
- private boolean isContract_ = false;
+ private boolean isContract_;
/**
* bool isContract = 6;
* @return The isContract.
@@ -172,7 +245,7 @@ public boolean getIsContract() {
}
public static final int CONTRACTBYTECODE_FIELD_NUMBER = 7;
- private com.google.protobuf.ByteString contractByteCode_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString contractByteCode_;
/**
* bytes contractByteCode = 7;
* @return The contractByteCode.
@@ -196,11 +269,11 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(balance_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, balance_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(balance_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, balance_);
}
if (nonce_ != 0L) {
output.writeUInt64(3, nonce_);
@@ -217,7 +290,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!contractByteCode_.isEmpty()) {
output.writeBytes(7, contractByteCode_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -226,11 +299,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, address_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(balance_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, balance_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(balance_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, balance_);
}
if (nonce_ != 0L) {
size += com.google.protobuf.CodedOutputStream
@@ -252,7 +325,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, contractByteCode_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -281,7 +354,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getIsContract()) return false;
if (!getContractByteCode()
.equals(other.getContractByteCode())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -310,7 +383,7 @@ public int hashCode() {
getIsContract());
hash = (37 * hash) + CONTRACTBYTECODE_FIELD_NUMBER;
hash = (53 * hash) + getContractByteCode().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -349,41 +422,39 @@ public static com.github.iotexproject.grpc.types.AccountMeta parseFrom(
}
public static com.github.iotexproject.grpc.types.AccountMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.AccountMeta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.types.AccountMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.types.AccountMeta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.types.AccountMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.AccountMeta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -403,7 +474,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -415,7 +486,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotextypes.AccountMeta}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotextypes.AccountMeta)
com.github.iotexproject.grpc.types.AccountMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -424,7 +495,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.Blockchain.internal_static_iotextypes_AccountMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -433,25 +504,36 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.types.AccountMeta.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
address_ = "";
+
balance_ = "";
+
nonce_ = 0L;
+
pendingNonce_ = 0L;
+
numActions_ = 0L;
+
isContract_ = false;
+
contractByteCode_ = com.google.protobuf.ByteString.EMPTY;
+
return this;
}
@@ -478,36 +560,49 @@ public com.github.iotexproject.grpc.types.AccountMeta build() {
@java.lang.Override
public com.github.iotexproject.grpc.types.AccountMeta buildPartial() {
com.github.iotexproject.grpc.types.AccountMeta result = new com.github.iotexproject.grpc.types.AccountMeta(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.address_ = address_;
+ result.balance_ = balance_;
+ result.nonce_ = nonce_;
+ result.pendingNonce_ = pendingNonce_;
+ result.numActions_ = numActions_;
+ result.isContract_ = isContract_;
+ result.contractByteCode_ = contractByteCode_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.types.AccountMeta result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.address_ = address_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.balance_ = balance_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.nonce_ = nonce_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.pendingNonce_ = pendingNonce_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.numActions_ = numActions_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.isContract_ = isContract_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.contractByteCode_ = contractByteCode_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.types.AccountMeta) {
@@ -522,12 +617,10 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.AccountMeta other) {
if (other == com.github.iotexproject.grpc.types.AccountMeta.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getBalance().isEmpty()) {
balance_ = other.balance_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (other.getNonce() != 0L) {
@@ -545,7 +638,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.AccountMeta other) {
if (other.getContractByteCode() != com.google.protobuf.ByteString.EMPTY) {
setContractByteCode(other.getContractByteCode());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -560,68 +653,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.types.AccountMeta parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- address_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- balance_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 24: {
- nonce_ = input.readUInt64();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- case 32: {
- pendingNonce_ = input.readUInt64();
- bitField0_ |= 0x00000008;
- break;
- } // case 32
- case 40: {
- numActions_ = input.readUInt64();
- bitField0_ |= 0x00000010;
- break;
- } // case 40
- case 48: {
- isContract_ = input.readBool();
- bitField0_ |= 0x00000020;
- break;
- } // case 48
- case 58: {
- contractByteCode_ = input.readBytes();
- bitField0_ |= 0x00000040;
- break;
- } // case 58
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.types.AccountMeta) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private java.lang.Object address_ = "";
/**
@@ -664,9 +708,11 @@ public java.lang.String getAddress() {
*/
public Builder setAddress(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -675,8 +721,8 @@ public Builder setAddress(
* @return This builder for chaining.
*/
public Builder clearAddress() {
+
address_ = getDefaultInstance().getAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -687,10 +733,12 @@ public Builder clearAddress() {
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
address_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -736,9 +784,11 @@ public java.lang.String getBalance() {
*/
public Builder setBalance(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
balance_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -747,8 +797,8 @@ public Builder setBalance(
* @return This builder for chaining.
*/
public Builder clearBalance() {
+
balance_ = getDefaultInstance().getBalance();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -759,10 +809,12 @@ public Builder clearBalance() {
*/
public Builder setBalanceBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
balance_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -782,9 +834,8 @@ public long getNonce() {
* @return This builder for chaining.
*/
public Builder setNonce(long value) {
-
+
nonce_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -793,7 +844,7 @@ public Builder setNonce(long value) {
* @return This builder for chaining.
*/
public Builder clearNonce() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
nonce_ = 0L;
onChanged();
return this;
@@ -814,9 +865,8 @@ public long getPendingNonce() {
* @return This builder for chaining.
*/
public Builder setPendingNonce(long value) {
-
+
pendingNonce_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -825,7 +875,7 @@ public Builder setPendingNonce(long value) {
* @return This builder for chaining.
*/
public Builder clearPendingNonce() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
pendingNonce_ = 0L;
onChanged();
return this;
@@ -846,9 +896,8 @@ public long getNumActions() {
* @return This builder for chaining.
*/
public Builder setNumActions(long value) {
-
+
numActions_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -857,7 +906,7 @@ public Builder setNumActions(long value) {
* @return This builder for chaining.
*/
public Builder clearNumActions() {
- bitField0_ = (bitField0_ & ~0x00000010);
+
numActions_ = 0L;
onChanged();
return this;
@@ -878,9 +927,8 @@ public boolean getIsContract() {
* @return This builder for chaining.
*/
public Builder setIsContract(boolean value) {
-
+
isContract_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -889,7 +937,7 @@ public Builder setIsContract(boolean value) {
* @return This builder for chaining.
*/
public Builder clearIsContract() {
- bitField0_ = (bitField0_ & ~0x00000020);
+
isContract_ = false;
onChanged();
return this;
@@ -910,9 +958,11 @@ public com.google.protobuf.ByteString getContractByteCode() {
* @return This builder for chaining.
*/
public Builder setContractByteCode(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
contractByteCode_ = value;
- bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -921,11 +971,23 @@ public Builder setContractByteCode(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearContractByteCode() {
- bitField0_ = (bitField0_ & ~0x00000040);
+
contractByteCode_ = getDefaultInstance().getContractByteCode();
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotextypes.AccountMeta)
}
@@ -947,18 +1009,7 @@ public AccountMeta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new AccountMeta(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/types/AccountMetaOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/types/AccountMetaOrBuilder.java
index 7257f5d..a668426 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/AccountMetaOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/AccountMetaOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/blockchain.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
diff --git a/src/main/java/com/github/iotexproject/grpc/types/Action.java b/src/main/java/com/github/iotexproject/grpc/types/Action.java
index 2953c6d..a849ad9 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/Action.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/Action.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotextypes.Action}
*/
public final class Action extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotextypes.Action)
ActionOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Action.class.getName());
- }
// Use Action.newBuilder() to construct.
- private Action(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private Action(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Action() {
@@ -32,20 +21,97 @@ private Action() {
encoding_ = 0;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Action();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Action(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.github.iotexproject.grpc.types.ActionCore.Builder subBuilder = null;
+ if (core_ != null) {
+ subBuilder = core_.toBuilder();
+ }
+ core_ = input.readMessage(com.github.iotexproject.grpc.types.ActionCore.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(core_);
+ core_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+
+ senderPubKey_ = input.readBytes();
+ break;
+ }
+ case 26: {
+
+ signature_ = input.readBytes();
+ break;
+ }
+ case 32: {
+ int rawValue = input.readEnum();
+
+ encoding_ = rawValue;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_Action_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.types.Action.class, com.github.iotexproject.grpc.types.Action.Builder.class);
}
- private int bitField0_;
public static final int CORE_FIELD_NUMBER = 1;
private com.github.iotexproject.grpc.types.ActionCore core_;
/**
@@ -54,7 +120,7 @@ private Action() {
*/
@java.lang.Override
public boolean hasCore() {
- return ((bitField0_ & 0x00000001) != 0);
+ return core_ != null;
}
/**
* .iotextypes.ActionCore core = 1;
@@ -69,11 +135,11 @@ public com.github.iotexproject.grpc.types.ActionCore getCore() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.ActionCoreOrBuilder getCoreOrBuilder() {
- return core_ == null ? com.github.iotexproject.grpc.types.ActionCore.getDefaultInstance() : core_;
+ return getCore();
}
public static final int SENDERPUBKEY_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString senderPubKey_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString senderPubKey_;
/**
* bytes senderPubKey = 2;
* @return The senderPubKey.
@@ -84,7 +150,7 @@ public com.google.protobuf.ByteString getSenderPubKey() {
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString signature_;
/**
* bytes signature = 3;
* @return The signature.
@@ -95,7 +161,7 @@ public com.google.protobuf.ByteString getSignature() {
}
public static final int ENCODING_FIELD_NUMBER = 4;
- private int encoding_ = 0;
+ private int encoding_;
/**
* .iotextypes.Encoding encoding = 4;
* @return The enum numeric value on the wire for encoding.
@@ -108,7 +174,8 @@ public com.google.protobuf.ByteString getSignature() {
* @return The encoding.
*/
@java.lang.Override public com.github.iotexproject.grpc.types.Encoding getEncoding() {
- com.github.iotexproject.grpc.types.Encoding result = com.github.iotexproject.grpc.types.Encoding.forNumber(encoding_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.types.Encoding result = com.github.iotexproject.grpc.types.Encoding.valueOf(encoding_);
return result == null ? com.github.iotexproject.grpc.types.Encoding.UNRECOGNIZED : result;
}
@@ -126,7 +193,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (core_ != null) {
output.writeMessage(1, getCore());
}
if (!senderPubKey_.isEmpty()) {
@@ -138,7 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (encoding_ != com.github.iotexproject.grpc.types.Encoding.IOTEX_PROTOBUF.getNumber()) {
output.writeEnum(4, encoding_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -147,7 +214,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (core_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCore());
}
@@ -163,7 +230,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, encoding_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -188,7 +255,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSignature()
.equals(other.getSignature())) return false;
if (encoding_ != other.encoding_) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -209,7 +276,7 @@ public int hashCode() {
hash = (53 * hash) + getSignature().hashCode();
hash = (37 * hash) + ENCODING_FIELD_NUMBER;
hash = (53 * hash) + encoding_;
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -248,41 +315,39 @@ public static com.github.iotexproject.grpc.types.Action parseFrom(
}
public static com.github.iotexproject.grpc.types.Action parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.Action parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.types.Action parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.types.Action parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.types.Action parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.Action parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -302,7 +367,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -310,7 +375,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotextypes.Action}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotextypes.Action)
com.github.iotexproject.grpc.types.ActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -319,7 +384,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -332,28 +397,30 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getCoreFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- core_ = null;
- if (coreBuilder_ != null) {
- coreBuilder_.dispose();
+ if (coreBuilder_ == null) {
+ core_ = null;
+ } else {
+ core_ = null;
coreBuilder_ = null;
}
senderPubKey_ = com.google.protobuf.ByteString.EMPTY;
+
signature_ = com.google.protobuf.ByteString.EMPTY;
+
encoding_ = 0;
+
return this;
}
@@ -380,32 +447,50 @@ public com.github.iotexproject.grpc.types.Action build() {
@java.lang.Override
public com.github.iotexproject.grpc.types.Action buildPartial() {
com.github.iotexproject.grpc.types.Action result = new com.github.iotexproject.grpc.types.Action(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ if (coreBuilder_ == null) {
+ result.core_ = core_;
+ } else {
+ result.core_ = coreBuilder_.build();
+ }
+ result.senderPubKey_ = senderPubKey_;
+ result.signature_ = signature_;
+ result.encoding_ = encoding_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.types.Action result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.core_ = coreBuilder_ == null
- ? core_
- : coreBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.senderPubKey_ = senderPubKey_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.signature_ = signature_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.encoding_ = encoding_;
- }
- result.bitField0_ |= to_bitField0_;
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.types.Action) {
@@ -430,7 +515,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.Action other) {
if (other.encoding_ != 0) {
setEncodingValue(other.getEncodingValue());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -445,65 +530,29 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.types.Action parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getCoreFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- senderPubKey_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- signature_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 32: {
- encoding_ = input.readEnum();
- bitField0_ |= 0x00000008;
- break;
- } // case 32
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.types.Action) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.github.iotexproject.grpc.types.ActionCore core_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ActionCore, com.github.iotexproject.grpc.types.ActionCore.Builder, com.github.iotexproject.grpc.types.ActionCoreOrBuilder> coreBuilder_;
/**
* .iotextypes.ActionCore core = 1;
* @return Whether the core field is set.
*/
public boolean hasCore() {
- return ((bitField0_ & 0x00000001) != 0);
+ return coreBuilder_ != null || core_ != null;
}
/**
* .iotextypes.ActionCore core = 1;
@@ -525,11 +574,11 @@ public Builder setCore(com.github.iotexproject.grpc.types.ActionCore value) {
throw new NullPointerException();
}
core_ = value;
+ onChanged();
} else {
coreBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -539,11 +588,11 @@ public Builder setCore(
com.github.iotexproject.grpc.types.ActionCore.Builder builderForValue) {
if (coreBuilder_ == null) {
core_ = builderForValue.build();
+ onChanged();
} else {
coreBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
/**
@@ -551,40 +600,38 @@ public Builder setCore(
*/
public Builder mergeCore(com.github.iotexproject.grpc.types.ActionCore value) {
if (coreBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- core_ != null &&
- core_ != com.github.iotexproject.grpc.types.ActionCore.getDefaultInstance()) {
- getCoreBuilder().mergeFrom(value);
+ if (core_ != null) {
+ core_ =
+ com.github.iotexproject.grpc.types.ActionCore.newBuilder(core_).mergeFrom(value).buildPartial();
} else {
core_ = value;
}
+ onChanged();
} else {
coreBuilder_.mergeFrom(value);
}
- if (core_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.ActionCore core = 1;
*/
public Builder clearCore() {
- bitField0_ = (bitField0_ & ~0x00000001);
- core_ = null;
- if (coreBuilder_ != null) {
- coreBuilder_.dispose();
+ if (coreBuilder_ == null) {
+ core_ = null;
+ onChanged();
+ } else {
+ core_ = null;
coreBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.ActionCore core = 1;
*/
public com.github.iotexproject.grpc.types.ActionCore.Builder getCoreBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getCoreFieldBuilder().getBuilder();
}
@@ -602,11 +649,11 @@ public com.github.iotexproject.grpc.types.ActionCoreOrBuilder getCoreOrBuilder()
/**
* .iotextypes.ActionCore core = 1;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ActionCore, com.github.iotexproject.grpc.types.ActionCore.Builder, com.github.iotexproject.grpc.types.ActionCoreOrBuilder>
getCoreFieldBuilder() {
if (coreBuilder_ == null) {
- coreBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ coreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ActionCore, com.github.iotexproject.grpc.types.ActionCore.Builder, com.github.iotexproject.grpc.types.ActionCoreOrBuilder>(
getCore(),
getParentForChildren(),
@@ -631,9 +678,11 @@ public com.google.protobuf.ByteString getSenderPubKey() {
* @return This builder for chaining.
*/
public Builder setSenderPubKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
senderPubKey_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -642,7 +691,7 @@ public Builder setSenderPubKey(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearSenderPubKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
senderPubKey_ = getDefaultInstance().getSenderPubKey();
onChanged();
return this;
@@ -663,9 +712,11 @@ public com.google.protobuf.ByteString getSignature() {
* @return This builder for chaining.
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
signature_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -674,7 +725,7 @@ public Builder setSignature(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearSignature() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
@@ -694,8 +745,8 @@ public Builder clearSignature() {
* @return This builder for chaining.
*/
public Builder setEncodingValue(int value) {
+
encoding_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -705,7 +756,8 @@ public Builder setEncodingValue(int value) {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.Encoding getEncoding() {
- com.github.iotexproject.grpc.types.Encoding result = com.github.iotexproject.grpc.types.Encoding.forNumber(encoding_);
+ @SuppressWarnings("deprecation")
+ com.github.iotexproject.grpc.types.Encoding result = com.github.iotexproject.grpc.types.Encoding.valueOf(encoding_);
return result == null ? com.github.iotexproject.grpc.types.Encoding.UNRECOGNIZED : result;
}
/**
@@ -717,7 +769,7 @@ public Builder setEncoding(com.github.iotexproject.grpc.types.Encoding value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000008;
+
encoding_ = value.getNumber();
onChanged();
return this;
@@ -727,11 +779,23 @@ public Builder setEncoding(com.github.iotexproject.grpc.types.Encoding value) {
* @return This builder for chaining.
*/
public Builder clearEncoding() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
encoding_ = 0;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotextypes.Action)
}
@@ -753,18 +817,7 @@ public Action parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Action(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionCore.java b/src/main/java/com/github/iotexproject/grpc/types/ActionCore.java
index ca6ebac..752fee7 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionCore.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionCore.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -9,21 +7,12 @@
* Protobuf type {@code iotextypes.ActionCore}
*/
public final class ActionCore extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotextypes.ActionCore)
ActionCoreOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ActionCore.class.getName());
- }
// Use ActionCore.newBuilder() to construct.
- private ActionCore(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ActionCore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActionCore() {
@@ -33,22 +22,628 @@ private ActionCore() {
accessList_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ActionCore();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ActionCore(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ version_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ nonce_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ gasLimit_ = input.readUInt64();
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gasPrice_ = s;
+ break;
+ }
+ case 40: {
+
+ chainID_ = input.readUInt32();
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gasTipCap_ = s;
+ break;
+ }
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gasFeeCap_ = s;
+ break;
+ }
+ case 66: {
+ com.github.iotexproject.grpc.types.BlobTxData.Builder subBuilder = null;
+ if (blobTxData_ != null) {
+ subBuilder = blobTxData_.toBuilder();
+ }
+ blobTxData_ = input.readMessage(com.github.iotexproject.grpc.types.BlobTxData.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(blobTxData_);
+ blobTxData_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 74: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ accessList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ accessList_.add(
+ input.readMessage(com.github.iotexproject.grpc.types.AccessTuple.parser(), extensionRegistry));
+ break;
+ }
+ case 82: {
+ com.github.iotexproject.grpc.types.Transfer.Builder subBuilder = null;
+ if (actionCase_ == 10) {
+ subBuilder = ((com.github.iotexproject.grpc.types.Transfer) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.Transfer.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.Transfer) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 10;
+ break;
+ }
+ case 90: {
+ com.github.iotexproject.grpc.types.TxContainer.Builder subBuilder = null;
+ if (actionCase_ == 11) {
+ subBuilder = ((com.github.iotexproject.grpc.types.TxContainer) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.TxContainer.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.TxContainer) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 11;
+ break;
+ }
+ case 98: {
+ com.github.iotexproject.grpc.types.Execution.Builder subBuilder = null;
+ if (actionCase_ == 12) {
+ subBuilder = ((com.github.iotexproject.grpc.types.Execution) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.Execution.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.Execution) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 12;
+ break;
+ }
+ case 106: {
+ com.github.iotexproject.grpc.types.StartSubChain.Builder subBuilder = null;
+ if (actionCase_ == 13) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StartSubChain) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StartSubChain.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StartSubChain) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 13;
+ break;
+ }
+ case 114: {
+ com.github.iotexproject.grpc.types.StopSubChain.Builder subBuilder = null;
+ if (actionCase_ == 14) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StopSubChain) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StopSubChain.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StopSubChain) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 14;
+ break;
+ }
+ case 122: {
+ com.github.iotexproject.grpc.types.PutBlock.Builder subBuilder = null;
+ if (actionCase_ == 15) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PutBlock) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PutBlock.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PutBlock) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 15;
+ break;
+ }
+ case 130: {
+ com.github.iotexproject.grpc.types.CreateDeposit.Builder subBuilder = null;
+ if (actionCase_ == 16) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CreateDeposit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CreateDeposit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CreateDeposit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 16;
+ break;
+ }
+ case 138: {
+ com.github.iotexproject.grpc.types.SettleDeposit.Builder subBuilder = null;
+ if (actionCase_ == 17) {
+ subBuilder = ((com.github.iotexproject.grpc.types.SettleDeposit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.SettleDeposit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.SettleDeposit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 17;
+ break;
+ }
+ case 146: {
+ com.github.iotexproject.grpc.types.CreatePlumChain.Builder subBuilder = null;
+ if (actionCase_ == 18) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CreatePlumChain) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CreatePlumChain.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CreatePlumChain) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 18;
+ break;
+ }
+ case 154: {
+ com.github.iotexproject.grpc.types.TerminatePlumChain.Builder subBuilder = null;
+ if (actionCase_ == 19) {
+ subBuilder = ((com.github.iotexproject.grpc.types.TerminatePlumChain) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.TerminatePlumChain.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.TerminatePlumChain) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 19;
+ break;
+ }
+ case 162: {
+ com.github.iotexproject.grpc.types.PlumPutBlock.Builder subBuilder = null;
+ if (actionCase_ == 20) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumPutBlock) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumPutBlock.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumPutBlock) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 20;
+ break;
+ }
+ case 170: {
+ com.github.iotexproject.grpc.types.PlumCreateDeposit.Builder subBuilder = null;
+ if (actionCase_ == 21) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumCreateDeposit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumCreateDeposit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumCreateDeposit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 21;
+ break;
+ }
+ case 178: {
+ com.github.iotexproject.grpc.types.PlumStartExit.Builder subBuilder = null;
+ if (actionCase_ == 22) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumStartExit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumStartExit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumStartExit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 22;
+ break;
+ }
+ case 186: {
+ com.github.iotexproject.grpc.types.PlumChallengeExit.Builder subBuilder = null;
+ if (actionCase_ == 23) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumChallengeExit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumChallengeExit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumChallengeExit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 23;
+ break;
+ }
+ case 194: {
+ com.github.iotexproject.grpc.types.PlumResponseChallengeExit.Builder subBuilder = null;
+ if (actionCase_ == 24) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumResponseChallengeExit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumResponseChallengeExit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumResponseChallengeExit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 24;
+ break;
+ }
+ case 202: {
+ com.github.iotexproject.grpc.types.PlumFinalizeExit.Builder subBuilder = null;
+ if (actionCase_ == 25) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumFinalizeExit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumFinalizeExit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumFinalizeExit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 25;
+ break;
+ }
+ case 210: {
+ com.github.iotexproject.grpc.types.PlumSettleDeposit.Builder subBuilder = null;
+ if (actionCase_ == 26) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumSettleDeposit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumSettleDeposit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumSettleDeposit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 26;
+ break;
+ }
+ case 218: {
+ com.github.iotexproject.grpc.types.PlumTransfer.Builder subBuilder = null;
+ if (actionCase_ == 27) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PlumTransfer) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PlumTransfer.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PlumTransfer) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 27;
+ break;
+ }
+ case 224: {
+
+ txType_ = input.readUInt32();
+ break;
+ }
+ case 242: {
+ com.github.iotexproject.grpc.types.DepositToRewardingFund.Builder subBuilder = null;
+ if (actionCase_ == 30) {
+ subBuilder = ((com.github.iotexproject.grpc.types.DepositToRewardingFund) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.DepositToRewardingFund.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.DepositToRewardingFund) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 30;
+ break;
+ }
+ case 250: {
+ com.github.iotexproject.grpc.types.ClaimFromRewardingFund.Builder subBuilder = null;
+ if (actionCase_ == 31) {
+ subBuilder = ((com.github.iotexproject.grpc.types.ClaimFromRewardingFund) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.ClaimFromRewardingFund.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.ClaimFromRewardingFund) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 31;
+ break;
+ }
+ case 258: {
+ com.github.iotexproject.grpc.types.GrantReward.Builder subBuilder = null;
+ if (actionCase_ == 32) {
+ subBuilder = ((com.github.iotexproject.grpc.types.GrantReward) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.GrantReward.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.GrantReward) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 32;
+ break;
+ }
+ case 322: {
+ com.github.iotexproject.grpc.types.StakeCreate.Builder subBuilder = null;
+ if (actionCase_ == 40) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeCreate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeCreate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeCreate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 40;
+ break;
+ }
+ case 330: {
+ com.github.iotexproject.grpc.types.StakeReclaim.Builder subBuilder = null;
+ if (actionCase_ == 41) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeReclaim) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeReclaim.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeReclaim) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 41;
+ break;
+ }
+ case 338: {
+ com.github.iotexproject.grpc.types.StakeReclaim.Builder subBuilder = null;
+ if (actionCase_ == 42) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeReclaim) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeReclaim.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeReclaim) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 42;
+ break;
+ }
+ case 346: {
+ com.github.iotexproject.grpc.types.StakeAddDeposit.Builder subBuilder = null;
+ if (actionCase_ == 43) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeAddDeposit) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeAddDeposit.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeAddDeposit) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 43;
+ break;
+ }
+ case 354: {
+ com.github.iotexproject.grpc.types.StakeRestake.Builder subBuilder = null;
+ if (actionCase_ == 44) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeRestake) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeRestake.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeRestake) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 44;
+ break;
+ }
+ case 362: {
+ com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder subBuilder = null;
+ if (actionCase_ == 45) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeChangeCandidate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeChangeCandidate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeChangeCandidate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 45;
+ break;
+ }
+ case 370: {
+ com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder subBuilder = null;
+ if (actionCase_ == 46) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeTransferOwnership) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeTransferOwnership.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeTransferOwnership) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 46;
+ break;
+ }
+ case 378: {
+ com.github.iotexproject.grpc.types.CandidateRegister.Builder subBuilder = null;
+ if (actionCase_ == 47) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateRegister) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateRegister.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateRegister) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 47;
+ break;
+ }
+ case 386: {
+ com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder subBuilder = null;
+ if (actionCase_ == 48) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateBasicInfo) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateBasicInfo.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateBasicInfo) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 48;
+ break;
+ }
+ case 394: {
+ com.github.iotexproject.grpc.types.CandidateActivate.Builder subBuilder = null;
+ if (actionCase_ == 49) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateActivate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateActivate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateActivate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 49;
+ break;
+ }
+ case 402: {
+ com.github.iotexproject.grpc.types.PutPollResult.Builder subBuilder = null;
+ if (actionCase_ == 50) {
+ subBuilder = ((com.github.iotexproject.grpc.types.PutPollResult) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.PutPollResult.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.PutPollResult) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 50;
+ break;
+ }
+ case 410: {
+ com.github.iotexproject.grpc.types.CandidateEndorsement.Builder subBuilder = null;
+ if (actionCase_ == 51) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateEndorsement) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateEndorsement.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateEndorsement) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 51;
+ break;
+ }
+ case 418: {
+ com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder subBuilder = null;
+ if (actionCase_ == 52) {
+ subBuilder = ((com.github.iotexproject.grpc.types.CandidateTransferOwnership) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.CandidateTransferOwnership.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.CandidateTransferOwnership) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 52;
+ break;
+ }
+ case 426: {
+ com.github.iotexproject.grpc.types.StakeMigrate.Builder subBuilder = null;
+ if (actionCase_ == 53) {
+ subBuilder = ((com.github.iotexproject.grpc.types.StakeMigrate) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(com.github.iotexproject.grpc.types.StakeMigrate.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.github.iotexproject.grpc.types.StakeMigrate) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 53;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ accessList_ = java.util.Collections.unmodifiableList(accessList_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionCore_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionCore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.iotexproject.grpc.types.ActionCore.class, com.github.iotexproject.grpc.types.ActionCore.Builder.class);
}
- private int bitField0_;
private int actionCase_ = 0;
- @SuppressWarnings("serial")
private java.lang.Object action_;
public enum ActionCase
implements com.google.protobuf.Internal.EnumLite,
@@ -156,7 +751,7 @@ public int getNumber() {
}
public static final int VERSION_FIELD_NUMBER = 1;
- private int version_ = 0;
+ private int version_;
/**
* uint32 version = 1;
* @return The version.
@@ -167,7 +762,7 @@ public int getVersion() {
}
public static final int NONCE_FIELD_NUMBER = 2;
- private long nonce_ = 0L;
+ private long nonce_;
/**
* uint64 nonce = 2;
* @return The nonce.
@@ -178,7 +773,7 @@ public long getNonce() {
}
public static final int GASLIMIT_FIELD_NUMBER = 3;
- private long gasLimit_ = 0L;
+ private long gasLimit_;
/**
* uint64 gasLimit = 3;
* @return The gasLimit.
@@ -189,8 +784,7 @@ public long getGasLimit() {
}
public static final int GASPRICE_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private volatile java.lang.Object gasPrice_ = "";
+ private volatile java.lang.Object gasPrice_;
/**
* string gasPrice = 4;
* @return The gasPrice.
@@ -228,7 +822,7 @@ public java.lang.String getGasPrice() {
}
public static final int CHAINID_FIELD_NUMBER = 5;
- private int chainID_ = 0;
+ private int chainID_;
/**
* uint32 chainID = 5;
* @return The chainID.
@@ -239,8 +833,7 @@ public int getChainID() {
}
public static final int GASTIPCAP_FIELD_NUMBER = 6;
- @SuppressWarnings("serial")
- private volatile java.lang.Object gasTipCap_ = "";
+ private volatile java.lang.Object gasTipCap_;
/**
* string gasTipCap = 6;
* @return The gasTipCap.
@@ -278,8 +871,7 @@ public java.lang.String getGasTipCap() {
}
public static final int GASFEECAP_FIELD_NUMBER = 7;
- @SuppressWarnings("serial")
- private volatile java.lang.Object gasFeeCap_ = "";
+ private volatile java.lang.Object gasFeeCap_;
/**
* string gasFeeCap = 7;
* @return The gasFeeCap.
@@ -324,7 +916,7 @@ public java.lang.String getGasFeeCap() {
*/
@java.lang.Override
public boolean hasBlobTxData() {
- return ((bitField0_ & 0x00000001) != 0);
+ return blobTxData_ != null;
}
/**
* .iotextypes.BlobTxData blobTxData = 8;
@@ -339,11 +931,10 @@ public com.github.iotexproject.grpc.types.BlobTxData getBlobTxData() {
*/
@java.lang.Override
public com.github.iotexproject.grpc.types.BlobTxDataOrBuilder getBlobTxDataOrBuilder() {
- return blobTxData_ == null ? com.github.iotexproject.grpc.types.BlobTxData.getDefaultInstance() : blobTxData_;
+ return getBlobTxData();
}
public static final int ACCESSLIST_FIELD_NUMBER = 9;
- @SuppressWarnings("serial")
private java.util.List accessList_;
/**
* repeated .iotextypes.AccessTuple accessList = 9;
@@ -384,7 +975,7 @@ public com.github.iotexproject.grpc.types.AccessTupleOrBuilder getAccessListOrBu
}
public static final int TXTYPE_FIELD_NUMBER = 28;
- private int txType_ = 0;
+ private int txType_;
/**
* uint32 txType = 28;
* @return The txType.
@@ -1550,19 +2141,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (gasLimit_ != 0L) {
output.writeUInt64(3, gasLimit_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasPrice_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, gasPrice_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasPrice_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gasPrice_);
}
if (chainID_ != 0) {
output.writeUInt32(5, chainID_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasTipCap_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 6, gasTipCap_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasTipCap_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gasTipCap_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasFeeCap_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 7, gasFeeCap_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasFeeCap_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gasFeeCap_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (blobTxData_ != null) {
output.writeMessage(8, getBlobTxData());
}
for (int i = 0; i < accessList_.size(); i++) {
@@ -1676,7 +2267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (actionCase_ == 53) {
output.writeMessage(53, (com.github.iotexproject.grpc.types.StakeMigrate) action_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1697,20 +2288,20 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, gasLimit_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasPrice_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, gasPrice_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasPrice_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gasPrice_);
}
if (chainID_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, chainID_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasTipCap_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(6, gasTipCap_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasTipCap_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gasTipCap_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gasFeeCap_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(7, gasFeeCap_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gasFeeCap_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gasFeeCap_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (blobTxData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getBlobTxData());
}
@@ -1862,7 +2453,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(53, (com.github.iotexproject.grpc.types.StakeMigrate) action_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -2045,7 +2636,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2226,7 +2817,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2265,41 +2856,39 @@ public static com.github.iotexproject.grpc.types.ActionCore parseFrom(
}
public static com.github.iotexproject.grpc.types.ActionCore parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.ActionCore parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.types.ActionCore parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.types.ActionCore parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.types.ActionCore parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.ActionCore parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2319,7 +2908,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2327,7 +2916,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotextypes.ActionCore}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotextypes.ActionCore)
com.github.iotexproject.grpc.types.ActionCoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2336,7 +2925,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionCore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2349,147 +2938,47 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
+ if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
- getBlobTxDataFieldBuilder();
getAccessListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- bitField1_ = 0;
version_ = 0;
+
nonce_ = 0L;
+
gasLimit_ = 0L;
+
gasPrice_ = "";
+
chainID_ = 0;
+
gasTipCap_ = "";
+
gasFeeCap_ = "";
- blobTxData_ = null;
- if (blobTxDataBuilder_ != null) {
- blobTxDataBuilder_.dispose();
+
+ if (blobTxDataBuilder_ == null) {
+ blobTxData_ = null;
+ } else {
+ blobTxData_ = null;
blobTxDataBuilder_ = null;
}
if (accessListBuilder_ == null) {
accessList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- accessList_ = null;
accessListBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000100);
txType_ = 0;
- if (transferBuilder_ != null) {
- transferBuilder_.clear();
- }
- if (txContainerBuilder_ != null) {
- txContainerBuilder_.clear();
- }
- if (executionBuilder_ != null) {
- executionBuilder_.clear();
- }
- if (startSubChainBuilder_ != null) {
- startSubChainBuilder_.clear();
- }
- if (stopSubChainBuilder_ != null) {
- stopSubChainBuilder_.clear();
- }
- if (putBlockBuilder_ != null) {
- putBlockBuilder_.clear();
- }
- if (createDepositBuilder_ != null) {
- createDepositBuilder_.clear();
- }
- if (settleDepositBuilder_ != null) {
- settleDepositBuilder_.clear();
- }
- if (createPlumChainBuilder_ != null) {
- createPlumChainBuilder_.clear();
- }
- if (terminatePlumChainBuilder_ != null) {
- terminatePlumChainBuilder_.clear();
- }
- if (plumPutBlockBuilder_ != null) {
- plumPutBlockBuilder_.clear();
- }
- if (plumCreateDepositBuilder_ != null) {
- plumCreateDepositBuilder_.clear();
- }
- if (plumStartExitBuilder_ != null) {
- plumStartExitBuilder_.clear();
- }
- if (plumChallengeExitBuilder_ != null) {
- plumChallengeExitBuilder_.clear();
- }
- if (plumResponseChallengeExitBuilder_ != null) {
- plumResponseChallengeExitBuilder_.clear();
- }
- if (plumFinalizeExitBuilder_ != null) {
- plumFinalizeExitBuilder_.clear();
- }
- if (plumSettleDepositBuilder_ != null) {
- plumSettleDepositBuilder_.clear();
- }
- if (plumTransferBuilder_ != null) {
- plumTransferBuilder_.clear();
- }
- if (depositToRewardingFundBuilder_ != null) {
- depositToRewardingFundBuilder_.clear();
- }
- if (claimFromRewardingFundBuilder_ != null) {
- claimFromRewardingFundBuilder_.clear();
- }
- if (grantRewardBuilder_ != null) {
- grantRewardBuilder_.clear();
- }
- if (stakeCreateBuilder_ != null) {
- stakeCreateBuilder_.clear();
- }
- if (stakeUnstakeBuilder_ != null) {
- stakeUnstakeBuilder_.clear();
- }
- if (stakeWithdrawBuilder_ != null) {
- stakeWithdrawBuilder_.clear();
- }
- if (stakeAddDepositBuilder_ != null) {
- stakeAddDepositBuilder_.clear();
- }
- if (stakeRestakeBuilder_ != null) {
- stakeRestakeBuilder_.clear();
- }
- if (stakeChangeCandidateBuilder_ != null) {
- stakeChangeCandidateBuilder_.clear();
- }
- if (stakeTransferOwnershipBuilder_ != null) {
- stakeTransferOwnershipBuilder_.clear();
- }
- if (candidateRegisterBuilder_ != null) {
- candidateRegisterBuilder_.clear();
- }
- if (candidateUpdateBuilder_ != null) {
- candidateUpdateBuilder_.clear();
- }
- if (candidateActivateBuilder_ != null) {
- candidateActivateBuilder_.clear();
- }
- if (candidateEndorsementBuilder_ != null) {
- candidateEndorsementBuilder_.clear();
- }
- if (candidateTransferOwnershipBuilder_ != null) {
- candidateTransferOwnershipBuilder_.clear();
- }
- if (stakeMigrateBuilder_ != null) {
- stakeMigrateBuilder_.clear();
- }
- if (putPollResultBuilder_ != null) {
- putPollResultBuilder_.clear();
- }
+
actionCase_ = 0;
action_ = null;
return this;
@@ -2518,211 +3007,311 @@ public com.github.iotexproject.grpc.types.ActionCore build() {
@java.lang.Override
public com.github.iotexproject.grpc.types.ActionCore buildPartial() {
com.github.iotexproject.grpc.types.ActionCore result = new com.github.iotexproject.grpc.types.ActionCore(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- if (bitField1_ != 0) { buildPartial1(result); }
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.types.ActionCore result) {
+ int from_bitField0_ = bitField0_;
+ result.version_ = version_;
+ result.nonce_ = nonce_;
+ result.gasLimit_ = gasLimit_;
+ result.gasPrice_ = gasPrice_;
+ result.chainID_ = chainID_;
+ result.gasTipCap_ = gasTipCap_;
+ result.gasFeeCap_ = gasFeeCap_;
+ if (blobTxDataBuilder_ == null) {
+ result.blobTxData_ = blobTxData_;
+ } else {
+ result.blobTxData_ = blobTxDataBuilder_.build();
+ }
if (accessListBuilder_ == null) {
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
accessList_ = java.util.Collections.unmodifiableList(accessList_);
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.accessList_ = accessList_;
} else {
result.accessList_ = accessListBuilder_.build();
}
- }
-
- private void buildPartial0(com.github.iotexproject.grpc.types.ActionCore result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.version_ = version_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.nonce_ = nonce_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.gasLimit_ = gasLimit_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.gasPrice_ = gasPrice_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.chainID_ = chainID_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.gasTipCap_ = gasTipCap_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.gasFeeCap_ = gasFeeCap_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.blobTxData_ = blobTxDataBuilder_ == null
- ? blobTxData_
- : blobTxDataBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.txType_ = txType_;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- private void buildPartial1(com.github.iotexproject.grpc.types.ActionCore result) {
- int from_bitField1_ = bitField1_;
- }
-
- private void buildPartialOneofs(com.github.iotexproject.grpc.types.ActionCore result) {
- result.actionCase_ = actionCase_;
- result.action_ = this.action_;
- if (actionCase_ == 10 &&
- transferBuilder_ != null) {
- result.action_ = transferBuilder_.build();
+ result.txType_ = txType_;
+ if (actionCase_ == 10) {
+ if (transferBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = transferBuilder_.build();
+ }
}
- if (actionCase_ == 11 &&
- txContainerBuilder_ != null) {
- result.action_ = txContainerBuilder_.build();
+ if (actionCase_ == 11) {
+ if (txContainerBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = txContainerBuilder_.build();
+ }
}
- if (actionCase_ == 12 &&
- executionBuilder_ != null) {
- result.action_ = executionBuilder_.build();
+ if (actionCase_ == 12) {
+ if (executionBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = executionBuilder_.build();
+ }
}
- if (actionCase_ == 13 &&
- startSubChainBuilder_ != null) {
- result.action_ = startSubChainBuilder_.build();
+ if (actionCase_ == 13) {
+ if (startSubChainBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = startSubChainBuilder_.build();
+ }
}
- if (actionCase_ == 14 &&
- stopSubChainBuilder_ != null) {
- result.action_ = stopSubChainBuilder_.build();
+ if (actionCase_ == 14) {
+ if (stopSubChainBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stopSubChainBuilder_.build();
+ }
}
- if (actionCase_ == 15 &&
- putBlockBuilder_ != null) {
- result.action_ = putBlockBuilder_.build();
+ if (actionCase_ == 15) {
+ if (putBlockBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = putBlockBuilder_.build();
+ }
}
- if (actionCase_ == 16 &&
- createDepositBuilder_ != null) {
- result.action_ = createDepositBuilder_.build();
+ if (actionCase_ == 16) {
+ if (createDepositBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = createDepositBuilder_.build();
+ }
}
- if (actionCase_ == 17 &&
- settleDepositBuilder_ != null) {
- result.action_ = settleDepositBuilder_.build();
+ if (actionCase_ == 17) {
+ if (settleDepositBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = settleDepositBuilder_.build();
+ }
}
- if (actionCase_ == 18 &&
- createPlumChainBuilder_ != null) {
- result.action_ = createPlumChainBuilder_.build();
+ if (actionCase_ == 18) {
+ if (createPlumChainBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = createPlumChainBuilder_.build();
+ }
}
- if (actionCase_ == 19 &&
- terminatePlumChainBuilder_ != null) {
- result.action_ = terminatePlumChainBuilder_.build();
+ if (actionCase_ == 19) {
+ if (terminatePlumChainBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = terminatePlumChainBuilder_.build();
+ }
}
- if (actionCase_ == 20 &&
- plumPutBlockBuilder_ != null) {
- result.action_ = plumPutBlockBuilder_.build();
+ if (actionCase_ == 20) {
+ if (plumPutBlockBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumPutBlockBuilder_.build();
+ }
}
- if (actionCase_ == 21 &&
- plumCreateDepositBuilder_ != null) {
- result.action_ = plumCreateDepositBuilder_.build();
+ if (actionCase_ == 21) {
+ if (plumCreateDepositBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumCreateDepositBuilder_.build();
+ }
}
- if (actionCase_ == 22 &&
- plumStartExitBuilder_ != null) {
- result.action_ = plumStartExitBuilder_.build();
+ if (actionCase_ == 22) {
+ if (plumStartExitBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumStartExitBuilder_.build();
+ }
}
- if (actionCase_ == 23 &&
- plumChallengeExitBuilder_ != null) {
- result.action_ = plumChallengeExitBuilder_.build();
+ if (actionCase_ == 23) {
+ if (plumChallengeExitBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumChallengeExitBuilder_.build();
+ }
}
- if (actionCase_ == 24 &&
- plumResponseChallengeExitBuilder_ != null) {
- result.action_ = plumResponseChallengeExitBuilder_.build();
+ if (actionCase_ == 24) {
+ if (plumResponseChallengeExitBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumResponseChallengeExitBuilder_.build();
+ }
}
- if (actionCase_ == 25 &&
- plumFinalizeExitBuilder_ != null) {
- result.action_ = plumFinalizeExitBuilder_.build();
+ if (actionCase_ == 25) {
+ if (plumFinalizeExitBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumFinalizeExitBuilder_.build();
+ }
}
- if (actionCase_ == 26 &&
- plumSettleDepositBuilder_ != null) {
- result.action_ = plumSettleDepositBuilder_.build();
+ if (actionCase_ == 26) {
+ if (plumSettleDepositBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumSettleDepositBuilder_.build();
+ }
}
- if (actionCase_ == 27 &&
- plumTransferBuilder_ != null) {
- result.action_ = plumTransferBuilder_.build();
+ if (actionCase_ == 27) {
+ if (plumTransferBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = plumTransferBuilder_.build();
+ }
}
- if (actionCase_ == 30 &&
- depositToRewardingFundBuilder_ != null) {
- result.action_ = depositToRewardingFundBuilder_.build();
+ if (actionCase_ == 30) {
+ if (depositToRewardingFundBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = depositToRewardingFundBuilder_.build();
+ }
}
- if (actionCase_ == 31 &&
- claimFromRewardingFundBuilder_ != null) {
- result.action_ = claimFromRewardingFundBuilder_.build();
+ if (actionCase_ == 31) {
+ if (claimFromRewardingFundBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = claimFromRewardingFundBuilder_.build();
+ }
}
- if (actionCase_ == 32 &&
- grantRewardBuilder_ != null) {
- result.action_ = grantRewardBuilder_.build();
+ if (actionCase_ == 32) {
+ if (grantRewardBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = grantRewardBuilder_.build();
+ }
}
- if (actionCase_ == 40 &&
- stakeCreateBuilder_ != null) {
- result.action_ = stakeCreateBuilder_.build();
+ if (actionCase_ == 40) {
+ if (stakeCreateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeCreateBuilder_.build();
+ }
}
- if (actionCase_ == 41 &&
- stakeUnstakeBuilder_ != null) {
- result.action_ = stakeUnstakeBuilder_.build();
+ if (actionCase_ == 41) {
+ if (stakeUnstakeBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeUnstakeBuilder_.build();
+ }
}
- if (actionCase_ == 42 &&
- stakeWithdrawBuilder_ != null) {
- result.action_ = stakeWithdrawBuilder_.build();
+ if (actionCase_ == 42) {
+ if (stakeWithdrawBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeWithdrawBuilder_.build();
+ }
}
- if (actionCase_ == 43 &&
- stakeAddDepositBuilder_ != null) {
- result.action_ = stakeAddDepositBuilder_.build();
+ if (actionCase_ == 43) {
+ if (stakeAddDepositBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeAddDepositBuilder_.build();
+ }
}
- if (actionCase_ == 44 &&
- stakeRestakeBuilder_ != null) {
- result.action_ = stakeRestakeBuilder_.build();
+ if (actionCase_ == 44) {
+ if (stakeRestakeBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeRestakeBuilder_.build();
+ }
}
- if (actionCase_ == 45 &&
- stakeChangeCandidateBuilder_ != null) {
- result.action_ = stakeChangeCandidateBuilder_.build();
+ if (actionCase_ == 45) {
+ if (stakeChangeCandidateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeChangeCandidateBuilder_.build();
+ }
}
- if (actionCase_ == 46 &&
- stakeTransferOwnershipBuilder_ != null) {
- result.action_ = stakeTransferOwnershipBuilder_.build();
+ if (actionCase_ == 46) {
+ if (stakeTransferOwnershipBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeTransferOwnershipBuilder_.build();
+ }
}
- if (actionCase_ == 47 &&
- candidateRegisterBuilder_ != null) {
- result.action_ = candidateRegisterBuilder_.build();
+ if (actionCase_ == 47) {
+ if (candidateRegisterBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateRegisterBuilder_.build();
+ }
}
- if (actionCase_ == 48 &&
- candidateUpdateBuilder_ != null) {
- result.action_ = candidateUpdateBuilder_.build();
+ if (actionCase_ == 48) {
+ if (candidateUpdateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateUpdateBuilder_.build();
+ }
}
- if (actionCase_ == 49 &&
- candidateActivateBuilder_ != null) {
- result.action_ = candidateActivateBuilder_.build();
+ if (actionCase_ == 49) {
+ if (candidateActivateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateActivateBuilder_.build();
+ }
}
- if (actionCase_ == 51 &&
- candidateEndorsementBuilder_ != null) {
- result.action_ = candidateEndorsementBuilder_.build();
+ if (actionCase_ == 51) {
+ if (candidateEndorsementBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateEndorsementBuilder_.build();
+ }
}
- if (actionCase_ == 52 &&
- candidateTransferOwnershipBuilder_ != null) {
- result.action_ = candidateTransferOwnershipBuilder_.build();
+ if (actionCase_ == 52) {
+ if (candidateTransferOwnershipBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = candidateTransferOwnershipBuilder_.build();
+ }
}
- if (actionCase_ == 53 &&
- stakeMigrateBuilder_ != null) {
- result.action_ = stakeMigrateBuilder_.build();
+ if (actionCase_ == 53) {
+ if (stakeMigrateBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = stakeMigrateBuilder_.build();
+ }
}
- if (actionCase_ == 50 &&
- putPollResultBuilder_ != null) {
- result.action_ = putPollResultBuilder_.build();
+ if (actionCase_ == 50) {
+ if (putPollResultBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = putPollResultBuilder_.build();
+ }
}
+ result.actionCase_ = actionCase_;
+ onBuilt();
+ return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.types.ActionCore) {
@@ -2746,7 +3335,6 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionCore other) {
}
if (!other.getGasPrice().isEmpty()) {
gasPrice_ = other.gasPrice_;
- bitField0_ |= 0x00000008;
onChanged();
}
if (other.getChainID() != 0) {
@@ -2754,12 +3342,10 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionCore other) {
}
if (!other.getGasTipCap().isEmpty()) {
gasTipCap_ = other.gasTipCap_;
- bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getGasFeeCap().isEmpty()) {
gasFeeCap_ = other.gasFeeCap_;
- bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasBlobTxData()) {
@@ -2769,7 +3355,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionCore other) {
if (!other.accessList_.isEmpty()) {
if (accessList_.isEmpty()) {
accessList_ = other.accessList_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAccessListIsMutable();
accessList_.addAll(other.accessList_);
@@ -2782,9 +3368,9 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionCore other) {
accessListBuilder_.dispose();
accessListBuilder_ = null;
accessList_ = other.accessList_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000001);
accessListBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAccessListFieldBuilder() : null;
} else {
accessListBuilder_.addAllMessages(other.accessList_);
@@ -2939,7 +3525,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionCore other) {
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -2954,335 +3540,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.types.ActionCore parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- version_ = input.readUInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- nonce_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24: {
- gasLimit_ = input.readUInt64();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- case 34: {
- gasPrice_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 40: {
- chainID_ = input.readUInt32();
- bitField0_ |= 0x00000010;
- break;
- } // case 40
- case 50: {
- gasTipCap_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 50
- case 58: {
- gasFeeCap_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 58
- case 66: {
- input.readMessage(
- getBlobTxDataFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000080;
- break;
- } // case 66
- case 74: {
- com.github.iotexproject.grpc.types.AccessTuple m =
- input.readMessage(
- com.github.iotexproject.grpc.types.AccessTuple.parser(),
- extensionRegistry);
- if (accessListBuilder_ == null) {
- ensureAccessListIsMutable();
- accessList_.add(m);
- } else {
- accessListBuilder_.addMessage(m);
- }
- break;
- } // case 74
- case 82: {
- input.readMessage(
- getTransferFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 10;
- break;
- } // case 82
- case 90: {
- input.readMessage(
- getTxContainerFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 11;
- break;
- } // case 90
- case 98: {
- input.readMessage(
- getExecutionFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 12;
- break;
- } // case 98
- case 106: {
- input.readMessage(
- getStartSubChainFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 13;
- break;
- } // case 106
- case 114: {
- input.readMessage(
- getStopSubChainFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 14;
- break;
- } // case 114
- case 122: {
- input.readMessage(
- getPutBlockFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 15;
- break;
- } // case 122
- case 130: {
- input.readMessage(
- getCreateDepositFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 16;
- break;
- } // case 130
- case 138: {
- input.readMessage(
- getSettleDepositFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 17;
- break;
- } // case 138
- case 146: {
- input.readMessage(
- getCreatePlumChainFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 18;
- break;
- } // case 146
- case 154: {
- input.readMessage(
- getTerminatePlumChainFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 19;
- break;
- } // case 154
- case 162: {
- input.readMessage(
- getPlumPutBlockFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 20;
- break;
- } // case 162
- case 170: {
- input.readMessage(
- getPlumCreateDepositFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 21;
- break;
- } // case 170
- case 178: {
- input.readMessage(
- getPlumStartExitFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 22;
- break;
- } // case 178
- case 186: {
- input.readMessage(
- getPlumChallengeExitFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 23;
- break;
- } // case 186
- case 194: {
- input.readMessage(
- getPlumResponseChallengeExitFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 24;
- break;
- } // case 194
- case 202: {
- input.readMessage(
- getPlumFinalizeExitFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 25;
- break;
- } // case 202
- case 210: {
- input.readMessage(
- getPlumSettleDepositFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 26;
- break;
- } // case 210
- case 218: {
- input.readMessage(
- getPlumTransferFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 27;
- break;
- } // case 218
- case 224: {
- txType_ = input.readUInt32();
- bitField0_ |= 0x00000200;
- break;
- } // case 224
- case 242: {
- input.readMessage(
- getDepositToRewardingFundFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 30;
- break;
- } // case 242
- case 250: {
- input.readMessage(
- getClaimFromRewardingFundFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 31;
- break;
- } // case 250
- case 258: {
- input.readMessage(
- getGrantRewardFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 32;
- break;
- } // case 258
- case 322: {
- input.readMessage(
- getStakeCreateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 40;
- break;
- } // case 322
- case 330: {
- input.readMessage(
- getStakeUnstakeFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 41;
- break;
- } // case 330
- case 338: {
- input.readMessage(
- getStakeWithdrawFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 42;
- break;
- } // case 338
- case 346: {
- input.readMessage(
- getStakeAddDepositFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 43;
- break;
- } // case 346
- case 354: {
- input.readMessage(
- getStakeRestakeFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 44;
- break;
- } // case 354
- case 362: {
- input.readMessage(
- getStakeChangeCandidateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 45;
- break;
- } // case 362
- case 370: {
- input.readMessage(
- getStakeTransferOwnershipFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 46;
- break;
- } // case 370
- case 378: {
- input.readMessage(
- getCandidateRegisterFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 47;
- break;
- } // case 378
- case 386: {
- input.readMessage(
- getCandidateUpdateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 48;
- break;
- } // case 386
- case 394: {
- input.readMessage(
- getCandidateActivateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 49;
- break;
- } // case 394
- case 402: {
- input.readMessage(
- getPutPollResultFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 50;
- break;
- } // case 402
- case 410: {
- input.readMessage(
- getCandidateEndorsementFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 51;
- break;
- } // case 410
- case 418: {
- input.readMessage(
- getCandidateTransferOwnershipFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 52;
- break;
- } // case 418
- case 426: {
- input.readMessage(
- getStakeMigrateFieldBuilder().getBuilder(),
- extensionRegistry);
- actionCase_ = 53;
- break;
- } // case 426
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.types.ActionCore) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int actionCase_ = 0;
@@ -3301,7 +3569,6 @@ public Builder clearAction() {
}
private int bitField0_;
- private int bitField1_;
private int version_ ;
/**
@@ -3318,9 +3585,8 @@ public int getVersion() {
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
-
+
version_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3329,7 +3595,7 @@ public Builder setVersion(int value) {
* @return This builder for chaining.
*/
public Builder clearVersion() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
version_ = 0;
onChanged();
return this;
@@ -3350,9 +3616,8 @@ public long getNonce() {
* @return This builder for chaining.
*/
public Builder setNonce(long value) {
-
+
nonce_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3361,7 +3626,7 @@ public Builder setNonce(long value) {
* @return This builder for chaining.
*/
public Builder clearNonce() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
nonce_ = 0L;
onChanged();
return this;
@@ -3382,9 +3647,8 @@ public long getGasLimit() {
* @return This builder for chaining.
*/
public Builder setGasLimit(long value) {
-
+
gasLimit_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3393,7 +3657,7 @@ public Builder setGasLimit(long value) {
* @return This builder for chaining.
*/
public Builder clearGasLimit() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
gasLimit_ = 0L;
onChanged();
return this;
@@ -3440,9 +3704,11 @@ public java.lang.String getGasPrice() {
*/
public Builder setGasPrice(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
gasPrice_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -3451,8 +3717,8 @@ public Builder setGasPrice(
* @return This builder for chaining.
*/
public Builder clearGasPrice() {
+
gasPrice_ = getDefaultInstance().getGasPrice();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -3463,10 +3729,12 @@ public Builder clearGasPrice() {
*/
public Builder setGasPriceBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
gasPrice_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -3486,9 +3754,8 @@ public int getChainID() {
* @return This builder for chaining.
*/
public Builder setChainID(int value) {
-
+
chainID_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -3497,7 +3764,7 @@ public Builder setChainID(int value) {
* @return This builder for chaining.
*/
public Builder clearChainID() {
- bitField0_ = (bitField0_ & ~0x00000010);
+
chainID_ = 0;
onChanged();
return this;
@@ -3544,9 +3811,11 @@ public java.lang.String getGasTipCap() {
*/
public Builder setGasTipCap(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
gasTipCap_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -3555,8 +3824,8 @@ public Builder setGasTipCap(
* @return This builder for chaining.
*/
public Builder clearGasTipCap() {
+
gasTipCap_ = getDefaultInstance().getGasTipCap();
- bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -3567,10 +3836,12 @@ public Builder clearGasTipCap() {
*/
public Builder setGasTipCapBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
gasTipCap_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -3616,9 +3887,11 @@ public java.lang.String getGasFeeCap() {
*/
public Builder setGasFeeCap(
java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
gasFeeCap_ = value;
- bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -3627,8 +3900,8 @@ public Builder setGasFeeCap(
* @return This builder for chaining.
*/
public Builder clearGasFeeCap() {
+
gasFeeCap_ = getDefaultInstance().getGasFeeCap();
- bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
@@ -3639,23 +3912,25 @@ public Builder clearGasFeeCap() {
*/
public Builder setGasFeeCapBytes(
com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
gasFeeCap_ = value;
- bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.github.iotexproject.grpc.types.BlobTxData blobTxData_;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlobTxData, com.github.iotexproject.grpc.types.BlobTxData.Builder, com.github.iotexproject.grpc.types.BlobTxDataOrBuilder> blobTxDataBuilder_;
/**
* .iotextypes.BlobTxData blobTxData = 8;
* @return Whether the blobTxData field is set.
*/
public boolean hasBlobTxData() {
- return ((bitField0_ & 0x00000080) != 0);
+ return blobTxDataBuilder_ != null || blobTxData_ != null;
}
/**
* .iotextypes.BlobTxData blobTxData = 8;
@@ -3677,11 +3952,11 @@ public Builder setBlobTxData(com.github.iotexproject.grpc.types.BlobTxData value
throw new NullPointerException();
}
blobTxData_ = value;
+ onChanged();
} else {
blobTxDataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
- onChanged();
+
return this;
}
/**
@@ -3691,11 +3966,11 @@ public Builder setBlobTxData(
com.github.iotexproject.grpc.types.BlobTxData.Builder builderForValue) {
if (blobTxDataBuilder_ == null) {
blobTxData_ = builderForValue.build();
+ onChanged();
} else {
blobTxDataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
- onChanged();
+
return this;
}
/**
@@ -3703,40 +3978,38 @@ public Builder setBlobTxData(
*/
public Builder mergeBlobTxData(com.github.iotexproject.grpc.types.BlobTxData value) {
if (blobTxDataBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0) &&
- blobTxData_ != null &&
- blobTxData_ != com.github.iotexproject.grpc.types.BlobTxData.getDefaultInstance()) {
- getBlobTxDataBuilder().mergeFrom(value);
+ if (blobTxData_ != null) {
+ blobTxData_ =
+ com.github.iotexproject.grpc.types.BlobTxData.newBuilder(blobTxData_).mergeFrom(value).buildPartial();
} else {
blobTxData_ = value;
}
+ onChanged();
} else {
blobTxDataBuilder_.mergeFrom(value);
}
- if (blobTxData_ != null) {
- bitField0_ |= 0x00000080;
- onChanged();
- }
+
return this;
}
/**
* .iotextypes.BlobTxData blobTxData = 8;
*/
public Builder clearBlobTxData() {
- bitField0_ = (bitField0_ & ~0x00000080);
- blobTxData_ = null;
- if (blobTxDataBuilder_ != null) {
- blobTxDataBuilder_.dispose();
+ if (blobTxDataBuilder_ == null) {
+ blobTxData_ = null;
+ onChanged();
+ } else {
+ blobTxData_ = null;
blobTxDataBuilder_ = null;
}
- onChanged();
+
return this;
}
/**
* .iotextypes.BlobTxData blobTxData = 8;
*/
public com.github.iotexproject.grpc.types.BlobTxData.Builder getBlobTxDataBuilder() {
- bitField0_ |= 0x00000080;
+
onChanged();
return getBlobTxDataFieldBuilder().getBuilder();
}
@@ -3754,11 +4027,11 @@ public com.github.iotexproject.grpc.types.BlobTxDataOrBuilder getBlobTxDataOrBui
/**
* .iotextypes.BlobTxData blobTxData = 8;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlobTxData, com.github.iotexproject.grpc.types.BlobTxData.Builder, com.github.iotexproject.grpc.types.BlobTxDataOrBuilder>
getBlobTxDataFieldBuilder() {
if (blobTxDataBuilder_ == null) {
- blobTxDataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ blobTxDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.BlobTxData, com.github.iotexproject.grpc.types.BlobTxData.Builder, com.github.iotexproject.grpc.types.BlobTxDataOrBuilder>(
getBlobTxData(),
getParentForChildren(),
@@ -3771,13 +4044,13 @@ public com.github.iotexproject.grpc.types.BlobTxDataOrBuilder getBlobTxDataOrBui
private java.util.List accessList_ =
java.util.Collections.emptyList();
private void ensureAccessListIsMutable() {
- if (!((bitField0_ & 0x00000100) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
accessList_ = new java.util.ArrayList(accessList_);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000001;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.AccessTuple, com.github.iotexproject.grpc.types.AccessTuple.Builder, com.github.iotexproject.grpc.types.AccessTupleOrBuilder> accessListBuilder_;
/**
@@ -3923,7 +4196,7 @@ public Builder addAllAccessList(
public Builder clearAccessList() {
if (accessListBuilder_ == null) {
accessList_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
accessListBuilder_.clear();
@@ -3993,14 +4266,14 @@ public com.github.iotexproject.grpc.types.AccessTuple.Builder addAccessListBuild
getAccessListBuilderList() {
return getAccessListFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.AccessTuple, com.github.iotexproject.grpc.types.AccessTuple.Builder, com.github.iotexproject.grpc.types.AccessTupleOrBuilder>
getAccessListFieldBuilder() {
if (accessListBuilder_ == null) {
- accessListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ accessListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.AccessTuple, com.github.iotexproject.grpc.types.AccessTuple.Builder, com.github.iotexproject.grpc.types.AccessTupleOrBuilder>(
accessList_,
- ((bitField0_ & 0x00000100) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
accessList_ = null;
@@ -4023,9 +4296,8 @@ public int getTxType() {
* @return This builder for chaining.
*/
public Builder setTxType(int value) {
-
+
txType_ = value;
- bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -4034,13 +4306,13 @@ public Builder setTxType(int value) {
* @return This builder for chaining.
*/
public Builder clearTxType() {
- bitField0_ = (bitField0_ & ~0x00000200);
+
txType_ = 0;
onChanged();
return this;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Transfer, com.github.iotexproject.grpc.types.Transfer.Builder, com.github.iotexproject.grpc.types.TransferOrBuilder> transferBuilder_;
/**
* .iotextypes.Transfer transfer = 10;
@@ -4114,9 +4386,8 @@ public Builder mergeTransfer(com.github.iotexproject.grpc.types.Transfer value)
} else {
if (actionCase_ == 10) {
transferBuilder_.mergeFrom(value);
- } else {
- transferBuilder_.setMessage(value);
}
+ transferBuilder_.setMessage(value);
}
actionCase_ = 10;
return this;
@@ -4163,14 +4434,14 @@ public com.github.iotexproject.grpc.types.TransferOrBuilder getTransferOrBuilder
/**
* .iotextypes.Transfer transfer = 10;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Transfer, com.github.iotexproject.grpc.types.Transfer.Builder, com.github.iotexproject.grpc.types.TransferOrBuilder>
getTransferFieldBuilder() {
if (transferBuilder_ == null) {
if (!(actionCase_ == 10)) {
action_ = com.github.iotexproject.grpc.types.Transfer.getDefaultInstance();
}
- transferBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Transfer, com.github.iotexproject.grpc.types.Transfer.Builder, com.github.iotexproject.grpc.types.TransferOrBuilder>(
(com.github.iotexproject.grpc.types.Transfer) action_,
getParentForChildren(),
@@ -4178,11 +4449,11 @@ public com.github.iotexproject.grpc.types.TransferOrBuilder getTransferOrBuilder
action_ = null;
}
actionCase_ = 10;
- onChanged();
+ onChanged();;
return transferBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TxContainer, com.github.iotexproject.grpc.types.TxContainer.Builder, com.github.iotexproject.grpc.types.TxContainerOrBuilder> txContainerBuilder_;
/**
* .iotextypes.TxContainer txContainer = 11;
@@ -4256,9 +4527,8 @@ public Builder mergeTxContainer(com.github.iotexproject.grpc.types.TxContainer v
} else {
if (actionCase_ == 11) {
txContainerBuilder_.mergeFrom(value);
- } else {
- txContainerBuilder_.setMessage(value);
}
+ txContainerBuilder_.setMessage(value);
}
actionCase_ = 11;
return this;
@@ -4305,14 +4575,14 @@ public com.github.iotexproject.grpc.types.TxContainerOrBuilder getTxContainerOrB
/**
* .iotextypes.TxContainer txContainer = 11;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TxContainer, com.github.iotexproject.grpc.types.TxContainer.Builder, com.github.iotexproject.grpc.types.TxContainerOrBuilder>
getTxContainerFieldBuilder() {
if (txContainerBuilder_ == null) {
if (!(actionCase_ == 11)) {
action_ = com.github.iotexproject.grpc.types.TxContainer.getDefaultInstance();
}
- txContainerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ txContainerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TxContainer, com.github.iotexproject.grpc.types.TxContainer.Builder, com.github.iotexproject.grpc.types.TxContainerOrBuilder>(
(com.github.iotexproject.grpc.types.TxContainer) action_,
getParentForChildren(),
@@ -4320,11 +4590,11 @@ public com.github.iotexproject.grpc.types.TxContainerOrBuilder getTxContainerOrB
action_ = null;
}
actionCase_ = 11;
- onChanged();
+ onChanged();;
return txContainerBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder> executionBuilder_;
/**
* .iotextypes.Execution execution = 12;
@@ -4398,9 +4668,8 @@ public Builder mergeExecution(com.github.iotexproject.grpc.types.Execution value
} else {
if (actionCase_ == 12) {
executionBuilder_.mergeFrom(value);
- } else {
- executionBuilder_.setMessage(value);
}
+ executionBuilder_.setMessage(value);
}
actionCase_ = 12;
return this;
@@ -4447,14 +4716,14 @@ public com.github.iotexproject.grpc.types.ExecutionOrBuilder getExecutionOrBuild
/**
* .iotextypes.Execution execution = 12;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder>
getExecutionFieldBuilder() {
if (executionBuilder_ == null) {
if (!(actionCase_ == 12)) {
action_ = com.github.iotexproject.grpc.types.Execution.getDefaultInstance();
}
- executionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.Execution, com.github.iotexproject.grpc.types.Execution.Builder, com.github.iotexproject.grpc.types.ExecutionOrBuilder>(
(com.github.iotexproject.grpc.types.Execution) action_,
getParentForChildren(),
@@ -4462,11 +4731,11 @@ public com.github.iotexproject.grpc.types.ExecutionOrBuilder getExecutionOrBuild
action_ = null;
}
actionCase_ = 12;
- onChanged();
+ onChanged();;
return executionBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StartSubChain, com.github.iotexproject.grpc.types.StartSubChain.Builder, com.github.iotexproject.grpc.types.StartSubChainOrBuilder> startSubChainBuilder_;
/**
*
@@ -4560,9 +4829,8 @@ public Builder mergeStartSubChain(com.github.iotexproject.grpc.types.StartSubCha
} else {
if (actionCase_ == 13) {
startSubChainBuilder_.mergeFrom(value);
- } else {
- startSubChainBuilder_.setMessage(value);
}
+ startSubChainBuilder_.setMessage(value);
}
actionCase_ = 13;
return this;
@@ -4625,14 +4893,14 @@ public com.github.iotexproject.grpc.types.StartSubChainOrBuilder getStartSubChai
*
* .iotextypes.StartSubChain startSubChain = 13;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StartSubChain, com.github.iotexproject.grpc.types.StartSubChain.Builder, com.github.iotexproject.grpc.types.StartSubChainOrBuilder>
getStartSubChainFieldBuilder() {
if (startSubChainBuilder_ == null) {
if (!(actionCase_ == 13)) {
action_ = com.github.iotexproject.grpc.types.StartSubChain.getDefaultInstance();
}
- startSubChainBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ startSubChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StartSubChain, com.github.iotexproject.grpc.types.StartSubChain.Builder, com.github.iotexproject.grpc.types.StartSubChainOrBuilder>(
(com.github.iotexproject.grpc.types.StartSubChain) action_,
getParentForChildren(),
@@ -4640,11 +4908,11 @@ public com.github.iotexproject.grpc.types.StartSubChainOrBuilder getStartSubChai
action_ = null;
}
actionCase_ = 13;
- onChanged();
+ onChanged();;
return startSubChainBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StopSubChain, com.github.iotexproject.grpc.types.StopSubChain.Builder, com.github.iotexproject.grpc.types.StopSubChainOrBuilder> stopSubChainBuilder_;
/**
* .iotextypes.StopSubChain stopSubChain = 14;
@@ -4718,9 +4986,8 @@ public Builder mergeStopSubChain(com.github.iotexproject.grpc.types.StopSubChain
} else {
if (actionCase_ == 14) {
stopSubChainBuilder_.mergeFrom(value);
- } else {
- stopSubChainBuilder_.setMessage(value);
}
+ stopSubChainBuilder_.setMessage(value);
}
actionCase_ = 14;
return this;
@@ -4767,14 +5034,14 @@ public com.github.iotexproject.grpc.types.StopSubChainOrBuilder getStopSubChainO
/**
* .iotextypes.StopSubChain stopSubChain = 14;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StopSubChain, com.github.iotexproject.grpc.types.StopSubChain.Builder, com.github.iotexproject.grpc.types.StopSubChainOrBuilder>
getStopSubChainFieldBuilder() {
if (stopSubChainBuilder_ == null) {
if (!(actionCase_ == 14)) {
action_ = com.github.iotexproject.grpc.types.StopSubChain.getDefaultInstance();
}
- stopSubChainBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stopSubChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StopSubChain, com.github.iotexproject.grpc.types.StopSubChain.Builder, com.github.iotexproject.grpc.types.StopSubChainOrBuilder>(
(com.github.iotexproject.grpc.types.StopSubChain) action_,
getParentForChildren(),
@@ -4782,11 +5049,11 @@ public com.github.iotexproject.grpc.types.StopSubChainOrBuilder getStopSubChainO
action_ = null;
}
actionCase_ = 14;
- onChanged();
+ onChanged();;
return stopSubChainBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PutBlock, com.github.iotexproject.grpc.types.PutBlock.Builder, com.github.iotexproject.grpc.types.PutBlockOrBuilder> putBlockBuilder_;
/**
* .iotextypes.PutBlock putBlock = 15;
@@ -4860,9 +5127,8 @@ public Builder mergePutBlock(com.github.iotexproject.grpc.types.PutBlock value)
} else {
if (actionCase_ == 15) {
putBlockBuilder_.mergeFrom(value);
- } else {
- putBlockBuilder_.setMessage(value);
}
+ putBlockBuilder_.setMessage(value);
}
actionCase_ = 15;
return this;
@@ -4909,14 +5175,14 @@ public com.github.iotexproject.grpc.types.PutBlockOrBuilder getPutBlockOrBuilder
/**
* .iotextypes.PutBlock putBlock = 15;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PutBlock, com.github.iotexproject.grpc.types.PutBlock.Builder, com.github.iotexproject.grpc.types.PutBlockOrBuilder>
getPutBlockFieldBuilder() {
if (putBlockBuilder_ == null) {
if (!(actionCase_ == 15)) {
action_ = com.github.iotexproject.grpc.types.PutBlock.getDefaultInstance();
}
- putBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ putBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PutBlock, com.github.iotexproject.grpc.types.PutBlock.Builder, com.github.iotexproject.grpc.types.PutBlockOrBuilder>(
(com.github.iotexproject.grpc.types.PutBlock) action_,
getParentForChildren(),
@@ -4924,11 +5190,11 @@ public com.github.iotexproject.grpc.types.PutBlockOrBuilder getPutBlockOrBuilder
action_ = null;
}
actionCase_ = 15;
- onChanged();
+ onChanged();;
return putBlockBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CreateDeposit, com.github.iotexproject.grpc.types.CreateDeposit.Builder, com.github.iotexproject.grpc.types.CreateDepositOrBuilder> createDepositBuilder_;
/**
* .iotextypes.CreateDeposit createDeposit = 16;
@@ -5002,9 +5268,8 @@ public Builder mergeCreateDeposit(com.github.iotexproject.grpc.types.CreateDepos
} else {
if (actionCase_ == 16) {
createDepositBuilder_.mergeFrom(value);
- } else {
- createDepositBuilder_.setMessage(value);
}
+ createDepositBuilder_.setMessage(value);
}
actionCase_ = 16;
return this;
@@ -5051,14 +5316,14 @@ public com.github.iotexproject.grpc.types.CreateDepositOrBuilder getCreateDeposi
/**
* .iotextypes.CreateDeposit createDeposit = 16;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CreateDeposit, com.github.iotexproject.grpc.types.CreateDeposit.Builder, com.github.iotexproject.grpc.types.CreateDepositOrBuilder>
getCreateDepositFieldBuilder() {
if (createDepositBuilder_ == null) {
if (!(actionCase_ == 16)) {
action_ = com.github.iotexproject.grpc.types.CreateDeposit.getDefaultInstance();
}
- createDepositBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ createDepositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CreateDeposit, com.github.iotexproject.grpc.types.CreateDeposit.Builder, com.github.iotexproject.grpc.types.CreateDepositOrBuilder>(
(com.github.iotexproject.grpc.types.CreateDeposit) action_,
getParentForChildren(),
@@ -5066,11 +5331,11 @@ public com.github.iotexproject.grpc.types.CreateDepositOrBuilder getCreateDeposi
action_ = null;
}
actionCase_ = 16;
- onChanged();
+ onChanged();;
return createDepositBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.SettleDeposit, com.github.iotexproject.grpc.types.SettleDeposit.Builder, com.github.iotexproject.grpc.types.SettleDepositOrBuilder> settleDepositBuilder_;
/**
* .iotextypes.SettleDeposit settleDeposit = 17;
@@ -5144,9 +5409,8 @@ public Builder mergeSettleDeposit(com.github.iotexproject.grpc.types.SettleDepos
} else {
if (actionCase_ == 17) {
settleDepositBuilder_.mergeFrom(value);
- } else {
- settleDepositBuilder_.setMessage(value);
}
+ settleDepositBuilder_.setMessage(value);
}
actionCase_ = 17;
return this;
@@ -5193,14 +5457,14 @@ public com.github.iotexproject.grpc.types.SettleDepositOrBuilder getSettleDeposi
/**
* .iotextypes.SettleDeposit settleDeposit = 17;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.SettleDeposit, com.github.iotexproject.grpc.types.SettleDeposit.Builder, com.github.iotexproject.grpc.types.SettleDepositOrBuilder>
getSettleDepositFieldBuilder() {
if (settleDepositBuilder_ == null) {
if (!(actionCase_ == 17)) {
action_ = com.github.iotexproject.grpc.types.SettleDeposit.getDefaultInstance();
}
- settleDepositBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ settleDepositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.SettleDeposit, com.github.iotexproject.grpc.types.SettleDeposit.Builder, com.github.iotexproject.grpc.types.SettleDepositOrBuilder>(
(com.github.iotexproject.grpc.types.SettleDeposit) action_,
getParentForChildren(),
@@ -5208,11 +5472,11 @@ public com.github.iotexproject.grpc.types.SettleDepositOrBuilder getSettleDeposi
action_ = null;
}
actionCase_ = 17;
- onChanged();
+ onChanged();;
return settleDepositBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CreatePlumChain, com.github.iotexproject.grpc.types.CreatePlumChain.Builder, com.github.iotexproject.grpc.types.CreatePlumChainOrBuilder> createPlumChainBuilder_;
/**
*
@@ -5306,9 +5570,8 @@ public Builder mergeCreatePlumChain(com.github.iotexproject.grpc.types.CreatePlu
} else {
if (actionCase_ == 18) {
createPlumChainBuilder_.mergeFrom(value);
- } else {
- createPlumChainBuilder_.setMessage(value);
}
+ createPlumChainBuilder_.setMessage(value);
}
actionCase_ = 18;
return this;
@@ -5371,14 +5634,14 @@ public com.github.iotexproject.grpc.types.CreatePlumChainOrBuilder getCreatePlum
*
* .iotextypes.CreatePlumChain createPlumChain = 18;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CreatePlumChain, com.github.iotexproject.grpc.types.CreatePlumChain.Builder, com.github.iotexproject.grpc.types.CreatePlumChainOrBuilder>
getCreatePlumChainFieldBuilder() {
if (createPlumChainBuilder_ == null) {
if (!(actionCase_ == 18)) {
action_ = com.github.iotexproject.grpc.types.CreatePlumChain.getDefaultInstance();
}
- createPlumChainBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ createPlumChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CreatePlumChain, com.github.iotexproject.grpc.types.CreatePlumChain.Builder, com.github.iotexproject.grpc.types.CreatePlumChainOrBuilder>(
(com.github.iotexproject.grpc.types.CreatePlumChain) action_,
getParentForChildren(),
@@ -5386,11 +5649,11 @@ public com.github.iotexproject.grpc.types.CreatePlumChainOrBuilder getCreatePlum
action_ = null;
}
actionCase_ = 18;
- onChanged();
+ onChanged();;
return createPlumChainBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TerminatePlumChain, com.github.iotexproject.grpc.types.TerminatePlumChain.Builder, com.github.iotexproject.grpc.types.TerminatePlumChainOrBuilder> terminatePlumChainBuilder_;
/**
* .iotextypes.TerminatePlumChain terminatePlumChain = 19;
@@ -5464,9 +5727,8 @@ public Builder mergeTerminatePlumChain(com.github.iotexproject.grpc.types.Termin
} else {
if (actionCase_ == 19) {
terminatePlumChainBuilder_.mergeFrom(value);
- } else {
- terminatePlumChainBuilder_.setMessage(value);
}
+ terminatePlumChainBuilder_.setMessage(value);
}
actionCase_ = 19;
return this;
@@ -5513,14 +5775,14 @@ public com.github.iotexproject.grpc.types.TerminatePlumChainOrBuilder getTermina
/**
* .iotextypes.TerminatePlumChain terminatePlumChain = 19;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TerminatePlumChain, com.github.iotexproject.grpc.types.TerminatePlumChain.Builder, com.github.iotexproject.grpc.types.TerminatePlumChainOrBuilder>
getTerminatePlumChainFieldBuilder() {
if (terminatePlumChainBuilder_ == null) {
if (!(actionCase_ == 19)) {
action_ = com.github.iotexproject.grpc.types.TerminatePlumChain.getDefaultInstance();
}
- terminatePlumChainBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ terminatePlumChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.TerminatePlumChain, com.github.iotexproject.grpc.types.TerminatePlumChain.Builder, com.github.iotexproject.grpc.types.TerminatePlumChainOrBuilder>(
(com.github.iotexproject.grpc.types.TerminatePlumChain) action_,
getParentForChildren(),
@@ -5528,11 +5790,11 @@ public com.github.iotexproject.grpc.types.TerminatePlumChainOrBuilder getTermina
action_ = null;
}
actionCase_ = 19;
- onChanged();
+ onChanged();;
return terminatePlumChainBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumPutBlock, com.github.iotexproject.grpc.types.PlumPutBlock.Builder, com.github.iotexproject.grpc.types.PlumPutBlockOrBuilder> plumPutBlockBuilder_;
/**
* .iotextypes.PlumPutBlock plumPutBlock = 20;
@@ -5606,9 +5868,8 @@ public Builder mergePlumPutBlock(com.github.iotexproject.grpc.types.PlumPutBlock
} else {
if (actionCase_ == 20) {
plumPutBlockBuilder_.mergeFrom(value);
- } else {
- plumPutBlockBuilder_.setMessage(value);
}
+ plumPutBlockBuilder_.setMessage(value);
}
actionCase_ = 20;
return this;
@@ -5655,14 +5916,14 @@ public com.github.iotexproject.grpc.types.PlumPutBlockOrBuilder getPlumPutBlockO
/**
* .iotextypes.PlumPutBlock plumPutBlock = 20;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumPutBlock, com.github.iotexproject.grpc.types.PlumPutBlock.Builder, com.github.iotexproject.grpc.types.PlumPutBlockOrBuilder>
getPlumPutBlockFieldBuilder() {
if (plumPutBlockBuilder_ == null) {
if (!(actionCase_ == 20)) {
action_ = com.github.iotexproject.grpc.types.PlumPutBlock.getDefaultInstance();
}
- plumPutBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumPutBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumPutBlock, com.github.iotexproject.grpc.types.PlumPutBlock.Builder, com.github.iotexproject.grpc.types.PlumPutBlockOrBuilder>(
(com.github.iotexproject.grpc.types.PlumPutBlock) action_,
getParentForChildren(),
@@ -5670,11 +5931,11 @@ public com.github.iotexproject.grpc.types.PlumPutBlockOrBuilder getPlumPutBlockO
action_ = null;
}
actionCase_ = 20;
- onChanged();
+ onChanged();;
return plumPutBlockBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumCreateDeposit, com.github.iotexproject.grpc.types.PlumCreateDeposit.Builder, com.github.iotexproject.grpc.types.PlumCreateDepositOrBuilder> plumCreateDepositBuilder_;
/**
* .iotextypes.PlumCreateDeposit plumCreateDeposit = 21;
@@ -5748,9 +6009,8 @@ public Builder mergePlumCreateDeposit(com.github.iotexproject.grpc.types.PlumCre
} else {
if (actionCase_ == 21) {
plumCreateDepositBuilder_.mergeFrom(value);
- } else {
- plumCreateDepositBuilder_.setMessage(value);
}
+ plumCreateDepositBuilder_.setMessage(value);
}
actionCase_ = 21;
return this;
@@ -5797,14 +6057,14 @@ public com.github.iotexproject.grpc.types.PlumCreateDepositOrBuilder getPlumCrea
/**
* .iotextypes.PlumCreateDeposit plumCreateDeposit = 21;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumCreateDeposit, com.github.iotexproject.grpc.types.PlumCreateDeposit.Builder, com.github.iotexproject.grpc.types.PlumCreateDepositOrBuilder>
getPlumCreateDepositFieldBuilder() {
if (plumCreateDepositBuilder_ == null) {
if (!(actionCase_ == 21)) {
action_ = com.github.iotexproject.grpc.types.PlumCreateDeposit.getDefaultInstance();
}
- plumCreateDepositBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumCreateDepositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumCreateDeposit, com.github.iotexproject.grpc.types.PlumCreateDeposit.Builder, com.github.iotexproject.grpc.types.PlumCreateDepositOrBuilder>(
(com.github.iotexproject.grpc.types.PlumCreateDeposit) action_,
getParentForChildren(),
@@ -5812,11 +6072,11 @@ public com.github.iotexproject.grpc.types.PlumCreateDepositOrBuilder getPlumCrea
action_ = null;
}
actionCase_ = 21;
- onChanged();
+ onChanged();;
return plumCreateDepositBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumStartExit, com.github.iotexproject.grpc.types.PlumStartExit.Builder, com.github.iotexproject.grpc.types.PlumStartExitOrBuilder> plumStartExitBuilder_;
/**
* .iotextypes.PlumStartExit plumStartExit = 22;
@@ -5890,9 +6150,8 @@ public Builder mergePlumStartExit(com.github.iotexproject.grpc.types.PlumStartEx
} else {
if (actionCase_ == 22) {
plumStartExitBuilder_.mergeFrom(value);
- } else {
- plumStartExitBuilder_.setMessage(value);
}
+ plumStartExitBuilder_.setMessage(value);
}
actionCase_ = 22;
return this;
@@ -5939,14 +6198,14 @@ public com.github.iotexproject.grpc.types.PlumStartExitOrBuilder getPlumStartExi
/**
* .iotextypes.PlumStartExit plumStartExit = 22;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumStartExit, com.github.iotexproject.grpc.types.PlumStartExit.Builder, com.github.iotexproject.grpc.types.PlumStartExitOrBuilder>
getPlumStartExitFieldBuilder() {
if (plumStartExitBuilder_ == null) {
if (!(actionCase_ == 22)) {
action_ = com.github.iotexproject.grpc.types.PlumStartExit.getDefaultInstance();
}
- plumStartExitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumStartExitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumStartExit, com.github.iotexproject.grpc.types.PlumStartExit.Builder, com.github.iotexproject.grpc.types.PlumStartExitOrBuilder>(
(com.github.iotexproject.grpc.types.PlumStartExit) action_,
getParentForChildren(),
@@ -5954,11 +6213,11 @@ public com.github.iotexproject.grpc.types.PlumStartExitOrBuilder getPlumStartExi
action_ = null;
}
actionCase_ = 22;
- onChanged();
+ onChanged();;
return plumStartExitBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumChallengeExit, com.github.iotexproject.grpc.types.PlumChallengeExit.Builder, com.github.iotexproject.grpc.types.PlumChallengeExitOrBuilder> plumChallengeExitBuilder_;
/**
* .iotextypes.PlumChallengeExit plumChallengeExit = 23;
@@ -6032,9 +6291,8 @@ public Builder mergePlumChallengeExit(com.github.iotexproject.grpc.types.PlumCha
} else {
if (actionCase_ == 23) {
plumChallengeExitBuilder_.mergeFrom(value);
- } else {
- plumChallengeExitBuilder_.setMessage(value);
}
+ plumChallengeExitBuilder_.setMessage(value);
}
actionCase_ = 23;
return this;
@@ -6081,14 +6339,14 @@ public com.github.iotexproject.grpc.types.PlumChallengeExitOrBuilder getPlumChal
/**
* .iotextypes.PlumChallengeExit plumChallengeExit = 23;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumChallengeExit, com.github.iotexproject.grpc.types.PlumChallengeExit.Builder, com.github.iotexproject.grpc.types.PlumChallengeExitOrBuilder>
getPlumChallengeExitFieldBuilder() {
if (plumChallengeExitBuilder_ == null) {
if (!(actionCase_ == 23)) {
action_ = com.github.iotexproject.grpc.types.PlumChallengeExit.getDefaultInstance();
}
- plumChallengeExitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumChallengeExitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumChallengeExit, com.github.iotexproject.grpc.types.PlumChallengeExit.Builder, com.github.iotexproject.grpc.types.PlumChallengeExitOrBuilder>(
(com.github.iotexproject.grpc.types.PlumChallengeExit) action_,
getParentForChildren(),
@@ -6096,11 +6354,11 @@ public com.github.iotexproject.grpc.types.PlumChallengeExitOrBuilder getPlumChal
action_ = null;
}
actionCase_ = 23;
- onChanged();
+ onChanged();;
return plumChallengeExitBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumResponseChallengeExit, com.github.iotexproject.grpc.types.PlumResponseChallengeExit.Builder, com.github.iotexproject.grpc.types.PlumResponseChallengeExitOrBuilder> plumResponseChallengeExitBuilder_;
/**
* .iotextypes.PlumResponseChallengeExit plumResponseChallengeExit = 24;
@@ -6174,9 +6432,8 @@ public Builder mergePlumResponseChallengeExit(com.github.iotexproject.grpc.types
} else {
if (actionCase_ == 24) {
plumResponseChallengeExitBuilder_.mergeFrom(value);
- } else {
- plumResponseChallengeExitBuilder_.setMessage(value);
}
+ plumResponseChallengeExitBuilder_.setMessage(value);
}
actionCase_ = 24;
return this;
@@ -6223,14 +6480,14 @@ public com.github.iotexproject.grpc.types.PlumResponseChallengeExitOrBuilder get
/**
* .iotextypes.PlumResponseChallengeExit plumResponseChallengeExit = 24;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumResponseChallengeExit, com.github.iotexproject.grpc.types.PlumResponseChallengeExit.Builder, com.github.iotexproject.grpc.types.PlumResponseChallengeExitOrBuilder>
getPlumResponseChallengeExitFieldBuilder() {
if (plumResponseChallengeExitBuilder_ == null) {
if (!(actionCase_ == 24)) {
action_ = com.github.iotexproject.grpc.types.PlumResponseChallengeExit.getDefaultInstance();
}
- plumResponseChallengeExitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumResponseChallengeExitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumResponseChallengeExit, com.github.iotexproject.grpc.types.PlumResponseChallengeExit.Builder, com.github.iotexproject.grpc.types.PlumResponseChallengeExitOrBuilder>(
(com.github.iotexproject.grpc.types.PlumResponseChallengeExit) action_,
getParentForChildren(),
@@ -6238,11 +6495,11 @@ public com.github.iotexproject.grpc.types.PlumResponseChallengeExitOrBuilder get
action_ = null;
}
actionCase_ = 24;
- onChanged();
+ onChanged();;
return plumResponseChallengeExitBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumFinalizeExit, com.github.iotexproject.grpc.types.PlumFinalizeExit.Builder, com.github.iotexproject.grpc.types.PlumFinalizeExitOrBuilder> plumFinalizeExitBuilder_;
/**
* .iotextypes.PlumFinalizeExit plumFinalizeExit = 25;
@@ -6316,9 +6573,8 @@ public Builder mergePlumFinalizeExit(com.github.iotexproject.grpc.types.PlumFina
} else {
if (actionCase_ == 25) {
plumFinalizeExitBuilder_.mergeFrom(value);
- } else {
- plumFinalizeExitBuilder_.setMessage(value);
}
+ plumFinalizeExitBuilder_.setMessage(value);
}
actionCase_ = 25;
return this;
@@ -6365,14 +6621,14 @@ public com.github.iotexproject.grpc.types.PlumFinalizeExitOrBuilder getPlumFinal
/**
* .iotextypes.PlumFinalizeExit plumFinalizeExit = 25;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumFinalizeExit, com.github.iotexproject.grpc.types.PlumFinalizeExit.Builder, com.github.iotexproject.grpc.types.PlumFinalizeExitOrBuilder>
getPlumFinalizeExitFieldBuilder() {
if (plumFinalizeExitBuilder_ == null) {
if (!(actionCase_ == 25)) {
action_ = com.github.iotexproject.grpc.types.PlumFinalizeExit.getDefaultInstance();
}
- plumFinalizeExitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumFinalizeExitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumFinalizeExit, com.github.iotexproject.grpc.types.PlumFinalizeExit.Builder, com.github.iotexproject.grpc.types.PlumFinalizeExitOrBuilder>(
(com.github.iotexproject.grpc.types.PlumFinalizeExit) action_,
getParentForChildren(),
@@ -6380,11 +6636,11 @@ public com.github.iotexproject.grpc.types.PlumFinalizeExitOrBuilder getPlumFinal
action_ = null;
}
actionCase_ = 25;
- onChanged();
+ onChanged();;
return plumFinalizeExitBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumSettleDeposit, com.github.iotexproject.grpc.types.PlumSettleDeposit.Builder, com.github.iotexproject.grpc.types.PlumSettleDepositOrBuilder> plumSettleDepositBuilder_;
/**
* .iotextypes.PlumSettleDeposit plumSettleDeposit = 26;
@@ -6458,9 +6714,8 @@ public Builder mergePlumSettleDeposit(com.github.iotexproject.grpc.types.PlumSet
} else {
if (actionCase_ == 26) {
plumSettleDepositBuilder_.mergeFrom(value);
- } else {
- plumSettleDepositBuilder_.setMessage(value);
}
+ plumSettleDepositBuilder_.setMessage(value);
}
actionCase_ = 26;
return this;
@@ -6507,14 +6762,14 @@ public com.github.iotexproject.grpc.types.PlumSettleDepositOrBuilder getPlumSett
/**
* .iotextypes.PlumSettleDeposit plumSettleDeposit = 26;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumSettleDeposit, com.github.iotexproject.grpc.types.PlumSettleDeposit.Builder, com.github.iotexproject.grpc.types.PlumSettleDepositOrBuilder>
getPlumSettleDepositFieldBuilder() {
if (plumSettleDepositBuilder_ == null) {
if (!(actionCase_ == 26)) {
action_ = com.github.iotexproject.grpc.types.PlumSettleDeposit.getDefaultInstance();
}
- plumSettleDepositBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumSettleDepositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumSettleDeposit, com.github.iotexproject.grpc.types.PlumSettleDeposit.Builder, com.github.iotexproject.grpc.types.PlumSettleDepositOrBuilder>(
(com.github.iotexproject.grpc.types.PlumSettleDeposit) action_,
getParentForChildren(),
@@ -6522,11 +6777,11 @@ public com.github.iotexproject.grpc.types.PlumSettleDepositOrBuilder getPlumSett
action_ = null;
}
actionCase_ = 26;
- onChanged();
+ onChanged();;
return plumSettleDepositBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumTransfer, com.github.iotexproject.grpc.types.PlumTransfer.Builder, com.github.iotexproject.grpc.types.PlumTransferOrBuilder> plumTransferBuilder_;
/**
* .iotextypes.PlumTransfer plumTransfer = 27;
@@ -6600,9 +6855,8 @@ public Builder mergePlumTransfer(com.github.iotexproject.grpc.types.PlumTransfer
} else {
if (actionCase_ == 27) {
plumTransferBuilder_.mergeFrom(value);
- } else {
- plumTransferBuilder_.setMessage(value);
}
+ plumTransferBuilder_.setMessage(value);
}
actionCase_ = 27;
return this;
@@ -6649,14 +6903,14 @@ public com.github.iotexproject.grpc.types.PlumTransferOrBuilder getPlumTransferO
/**
* .iotextypes.PlumTransfer plumTransfer = 27;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumTransfer, com.github.iotexproject.grpc.types.PlumTransfer.Builder, com.github.iotexproject.grpc.types.PlumTransferOrBuilder>
getPlumTransferFieldBuilder() {
if (plumTransferBuilder_ == null) {
if (!(actionCase_ == 27)) {
action_ = com.github.iotexproject.grpc.types.PlumTransfer.getDefaultInstance();
}
- plumTransferBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ plumTransferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PlumTransfer, com.github.iotexproject.grpc.types.PlumTransfer.Builder, com.github.iotexproject.grpc.types.PlumTransferOrBuilder>(
(com.github.iotexproject.grpc.types.PlumTransfer) action_,
getParentForChildren(),
@@ -6664,11 +6918,11 @@ public com.github.iotexproject.grpc.types.PlumTransferOrBuilder getPlumTransferO
action_ = null;
}
actionCase_ = 27;
- onChanged();
+ onChanged();;
return plumTransferBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.DepositToRewardingFund, com.github.iotexproject.grpc.types.DepositToRewardingFund.Builder, com.github.iotexproject.grpc.types.DepositToRewardingFundOrBuilder> depositToRewardingFundBuilder_;
/**
*
@@ -6762,9 +7016,8 @@ public Builder mergeDepositToRewardingFund(com.github.iotexproject.grpc.types.De
} else {
if (actionCase_ == 30) {
depositToRewardingFundBuilder_.mergeFrom(value);
- } else {
- depositToRewardingFundBuilder_.setMessage(value);
}
+ depositToRewardingFundBuilder_.setMessage(value);
}
actionCase_ = 30;
return this;
@@ -6827,14 +7080,14 @@ public com.github.iotexproject.grpc.types.DepositToRewardingFundOrBuilder getDep
*
* .iotextypes.DepositToRewardingFund depositToRewardingFund = 30;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.DepositToRewardingFund, com.github.iotexproject.grpc.types.DepositToRewardingFund.Builder, com.github.iotexproject.grpc.types.DepositToRewardingFundOrBuilder>
getDepositToRewardingFundFieldBuilder() {
if (depositToRewardingFundBuilder_ == null) {
if (!(actionCase_ == 30)) {
action_ = com.github.iotexproject.grpc.types.DepositToRewardingFund.getDefaultInstance();
}
- depositToRewardingFundBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ depositToRewardingFundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.DepositToRewardingFund, com.github.iotexproject.grpc.types.DepositToRewardingFund.Builder, com.github.iotexproject.grpc.types.DepositToRewardingFundOrBuilder>(
(com.github.iotexproject.grpc.types.DepositToRewardingFund) action_,
getParentForChildren(),
@@ -6842,11 +7095,11 @@ public com.github.iotexproject.grpc.types.DepositToRewardingFundOrBuilder getDep
action_ = null;
}
actionCase_ = 30;
- onChanged();
+ onChanged();;
return depositToRewardingFundBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ClaimFromRewardingFund, com.github.iotexproject.grpc.types.ClaimFromRewardingFund.Builder, com.github.iotexproject.grpc.types.ClaimFromRewardingFundOrBuilder> claimFromRewardingFundBuilder_;
/**
* .iotextypes.ClaimFromRewardingFund claimFromRewardingFund = 31;
@@ -6920,9 +7173,8 @@ public Builder mergeClaimFromRewardingFund(com.github.iotexproject.grpc.types.Cl
} else {
if (actionCase_ == 31) {
claimFromRewardingFundBuilder_.mergeFrom(value);
- } else {
- claimFromRewardingFundBuilder_.setMessage(value);
}
+ claimFromRewardingFundBuilder_.setMessage(value);
}
actionCase_ = 31;
return this;
@@ -6969,14 +7221,14 @@ public com.github.iotexproject.grpc.types.ClaimFromRewardingFundOrBuilder getCla
/**
* .iotextypes.ClaimFromRewardingFund claimFromRewardingFund = 31;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ClaimFromRewardingFund, com.github.iotexproject.grpc.types.ClaimFromRewardingFund.Builder, com.github.iotexproject.grpc.types.ClaimFromRewardingFundOrBuilder>
getClaimFromRewardingFundFieldBuilder() {
if (claimFromRewardingFundBuilder_ == null) {
if (!(actionCase_ == 31)) {
action_ = com.github.iotexproject.grpc.types.ClaimFromRewardingFund.getDefaultInstance();
}
- claimFromRewardingFundBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ claimFromRewardingFundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.ClaimFromRewardingFund, com.github.iotexproject.grpc.types.ClaimFromRewardingFund.Builder, com.github.iotexproject.grpc.types.ClaimFromRewardingFundOrBuilder>(
(com.github.iotexproject.grpc.types.ClaimFromRewardingFund) action_,
getParentForChildren(),
@@ -6984,11 +7236,11 @@ public com.github.iotexproject.grpc.types.ClaimFromRewardingFundOrBuilder getCla
action_ = null;
}
actionCase_ = 31;
- onChanged();
+ onChanged();;
return claimFromRewardingFundBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.GrantReward, com.github.iotexproject.grpc.types.GrantReward.Builder, com.github.iotexproject.grpc.types.GrantRewardOrBuilder> grantRewardBuilder_;
/**
* .iotextypes.GrantReward grantReward = 32;
@@ -7062,9 +7314,8 @@ public Builder mergeGrantReward(com.github.iotexproject.grpc.types.GrantReward v
} else {
if (actionCase_ == 32) {
grantRewardBuilder_.mergeFrom(value);
- } else {
- grantRewardBuilder_.setMessage(value);
}
+ grantRewardBuilder_.setMessage(value);
}
actionCase_ = 32;
return this;
@@ -7111,14 +7362,14 @@ public com.github.iotexproject.grpc.types.GrantRewardOrBuilder getGrantRewardOrB
/**
* .iotextypes.GrantReward grantReward = 32;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.GrantReward, com.github.iotexproject.grpc.types.GrantReward.Builder, com.github.iotexproject.grpc.types.GrantRewardOrBuilder>
getGrantRewardFieldBuilder() {
if (grantRewardBuilder_ == null) {
if (!(actionCase_ == 32)) {
action_ = com.github.iotexproject.grpc.types.GrantReward.getDefaultInstance();
}
- grantRewardBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grantRewardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.GrantReward, com.github.iotexproject.grpc.types.GrantReward.Builder, com.github.iotexproject.grpc.types.GrantRewardOrBuilder>(
(com.github.iotexproject.grpc.types.GrantReward) action_,
getParentForChildren(),
@@ -7126,11 +7377,11 @@ public com.github.iotexproject.grpc.types.GrantRewardOrBuilder getGrantRewardOrB
action_ = null;
}
actionCase_ = 32;
- onChanged();
+ onChanged();;
return grantRewardBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeCreate, com.github.iotexproject.grpc.types.StakeCreate.Builder, com.github.iotexproject.grpc.types.StakeCreateOrBuilder> stakeCreateBuilder_;
/**
*
@@ -7224,9 +7475,8 @@ public Builder mergeStakeCreate(com.github.iotexproject.grpc.types.StakeCreate v
} else {
if (actionCase_ == 40) {
stakeCreateBuilder_.mergeFrom(value);
- } else {
- stakeCreateBuilder_.setMessage(value);
}
+ stakeCreateBuilder_.setMessage(value);
}
actionCase_ = 40;
return this;
@@ -7289,14 +7539,14 @@ public com.github.iotexproject.grpc.types.StakeCreateOrBuilder getStakeCreateOrB
*
* .iotextypes.StakeCreate stakeCreate = 40;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeCreate, com.github.iotexproject.grpc.types.StakeCreate.Builder, com.github.iotexproject.grpc.types.StakeCreateOrBuilder>
getStakeCreateFieldBuilder() {
if (stakeCreateBuilder_ == null) {
if (!(actionCase_ == 40)) {
action_ = com.github.iotexproject.grpc.types.StakeCreate.getDefaultInstance();
}
- stakeCreateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeCreate, com.github.iotexproject.grpc.types.StakeCreate.Builder, com.github.iotexproject.grpc.types.StakeCreateOrBuilder>(
(com.github.iotexproject.grpc.types.StakeCreate) action_,
getParentForChildren(),
@@ -7304,11 +7554,11 @@ public com.github.iotexproject.grpc.types.StakeCreateOrBuilder getStakeCreateOrB
action_ = null;
}
actionCase_ = 40;
- onChanged();
+ onChanged();;
return stakeCreateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder> stakeUnstakeBuilder_;
/**
* .iotextypes.StakeReclaim stakeUnstake = 41;
@@ -7382,9 +7632,8 @@ public Builder mergeStakeUnstake(com.github.iotexproject.grpc.types.StakeReclaim
} else {
if (actionCase_ == 41) {
stakeUnstakeBuilder_.mergeFrom(value);
- } else {
- stakeUnstakeBuilder_.setMessage(value);
}
+ stakeUnstakeBuilder_.setMessage(value);
}
actionCase_ = 41;
return this;
@@ -7431,14 +7680,14 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeUnstakeO
/**
* .iotextypes.StakeReclaim stakeUnstake = 41;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>
getStakeUnstakeFieldBuilder() {
if (stakeUnstakeBuilder_ == null) {
if (!(actionCase_ == 41)) {
action_ = com.github.iotexproject.grpc.types.StakeReclaim.getDefaultInstance();
}
- stakeUnstakeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeUnstakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>(
(com.github.iotexproject.grpc.types.StakeReclaim) action_,
getParentForChildren(),
@@ -7446,11 +7695,11 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeUnstakeO
action_ = null;
}
actionCase_ = 41;
- onChanged();
+ onChanged();;
return stakeUnstakeBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder> stakeWithdrawBuilder_;
/**
* .iotextypes.StakeReclaim stakeWithdraw = 42;
@@ -7524,9 +7773,8 @@ public Builder mergeStakeWithdraw(com.github.iotexproject.grpc.types.StakeReclai
} else {
if (actionCase_ == 42) {
stakeWithdrawBuilder_.mergeFrom(value);
- } else {
- stakeWithdrawBuilder_.setMessage(value);
}
+ stakeWithdrawBuilder_.setMessage(value);
}
actionCase_ = 42;
return this;
@@ -7573,14 +7821,14 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeWithdraw
/**
* .iotextypes.StakeReclaim stakeWithdraw = 42;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>
getStakeWithdrawFieldBuilder() {
if (stakeWithdrawBuilder_ == null) {
if (!(actionCase_ == 42)) {
action_ = com.github.iotexproject.grpc.types.StakeReclaim.getDefaultInstance();
}
- stakeWithdrawBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeWithdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeReclaim, com.github.iotexproject.grpc.types.StakeReclaim.Builder, com.github.iotexproject.grpc.types.StakeReclaimOrBuilder>(
(com.github.iotexproject.grpc.types.StakeReclaim) action_,
getParentForChildren(),
@@ -7588,11 +7836,11 @@ public com.github.iotexproject.grpc.types.StakeReclaimOrBuilder getStakeWithdraw
action_ = null;
}
actionCase_ = 42;
- onChanged();
+ onChanged();;
return stakeWithdrawBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeAddDeposit, com.github.iotexproject.grpc.types.StakeAddDeposit.Builder, com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder> stakeAddDepositBuilder_;
/**
* .iotextypes.StakeAddDeposit stakeAddDeposit = 43;
@@ -7666,9 +7914,8 @@ public Builder mergeStakeAddDeposit(com.github.iotexproject.grpc.types.StakeAddD
} else {
if (actionCase_ == 43) {
stakeAddDepositBuilder_.mergeFrom(value);
- } else {
- stakeAddDepositBuilder_.setMessage(value);
}
+ stakeAddDepositBuilder_.setMessage(value);
}
actionCase_ = 43;
return this;
@@ -7715,14 +7962,14 @@ public com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder getStakeAddDe
/**
* .iotextypes.StakeAddDeposit stakeAddDeposit = 43;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeAddDeposit, com.github.iotexproject.grpc.types.StakeAddDeposit.Builder, com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder>
getStakeAddDepositFieldBuilder() {
if (stakeAddDepositBuilder_ == null) {
if (!(actionCase_ == 43)) {
action_ = com.github.iotexproject.grpc.types.StakeAddDeposit.getDefaultInstance();
}
- stakeAddDepositBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeAddDepositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeAddDeposit, com.github.iotexproject.grpc.types.StakeAddDeposit.Builder, com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder>(
(com.github.iotexproject.grpc.types.StakeAddDeposit) action_,
getParentForChildren(),
@@ -7730,11 +7977,11 @@ public com.github.iotexproject.grpc.types.StakeAddDepositOrBuilder getStakeAddDe
action_ = null;
}
actionCase_ = 43;
- onChanged();
+ onChanged();;
return stakeAddDepositBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeRestake, com.github.iotexproject.grpc.types.StakeRestake.Builder, com.github.iotexproject.grpc.types.StakeRestakeOrBuilder> stakeRestakeBuilder_;
/**
* .iotextypes.StakeRestake stakeRestake = 44;
@@ -7808,9 +8055,8 @@ public Builder mergeStakeRestake(com.github.iotexproject.grpc.types.StakeRestake
} else {
if (actionCase_ == 44) {
stakeRestakeBuilder_.mergeFrom(value);
- } else {
- stakeRestakeBuilder_.setMessage(value);
}
+ stakeRestakeBuilder_.setMessage(value);
}
actionCase_ = 44;
return this;
@@ -7857,14 +8103,14 @@ public com.github.iotexproject.grpc.types.StakeRestakeOrBuilder getStakeRestakeO
/**
* .iotextypes.StakeRestake stakeRestake = 44;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeRestake, com.github.iotexproject.grpc.types.StakeRestake.Builder, com.github.iotexproject.grpc.types.StakeRestakeOrBuilder>
getStakeRestakeFieldBuilder() {
if (stakeRestakeBuilder_ == null) {
if (!(actionCase_ == 44)) {
action_ = com.github.iotexproject.grpc.types.StakeRestake.getDefaultInstance();
}
- stakeRestakeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeRestakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeRestake, com.github.iotexproject.grpc.types.StakeRestake.Builder, com.github.iotexproject.grpc.types.StakeRestakeOrBuilder>(
(com.github.iotexproject.grpc.types.StakeRestake) action_,
getParentForChildren(),
@@ -7872,11 +8118,11 @@ public com.github.iotexproject.grpc.types.StakeRestakeOrBuilder getStakeRestakeO
action_ = null;
}
actionCase_ = 44;
- onChanged();
+ onChanged();;
return stakeRestakeBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeChangeCandidate, com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder, com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder> stakeChangeCandidateBuilder_;
/**
* .iotextypes.StakeChangeCandidate stakeChangeCandidate = 45;
@@ -7950,9 +8196,8 @@ public Builder mergeStakeChangeCandidate(com.github.iotexproject.grpc.types.Stak
} else {
if (actionCase_ == 45) {
stakeChangeCandidateBuilder_.mergeFrom(value);
- } else {
- stakeChangeCandidateBuilder_.setMessage(value);
}
+ stakeChangeCandidateBuilder_.setMessage(value);
}
actionCase_ = 45;
return this;
@@ -7999,14 +8244,14 @@ public com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder getStake
/**
* .iotextypes.StakeChangeCandidate stakeChangeCandidate = 45;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeChangeCandidate, com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder, com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder>
getStakeChangeCandidateFieldBuilder() {
if (stakeChangeCandidateBuilder_ == null) {
if (!(actionCase_ == 45)) {
action_ = com.github.iotexproject.grpc.types.StakeChangeCandidate.getDefaultInstance();
}
- stakeChangeCandidateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeChangeCandidateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeChangeCandidate, com.github.iotexproject.grpc.types.StakeChangeCandidate.Builder, com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder>(
(com.github.iotexproject.grpc.types.StakeChangeCandidate) action_,
getParentForChildren(),
@@ -8014,11 +8259,11 @@ public com.github.iotexproject.grpc.types.StakeChangeCandidateOrBuilder getStake
action_ = null;
}
actionCase_ = 45;
- onChanged();
+ onChanged();;
return stakeChangeCandidateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeTransferOwnership, com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder, com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder> stakeTransferOwnershipBuilder_;
/**
* .iotextypes.StakeTransferOwnership stakeTransferOwnership = 46;
@@ -8092,9 +8337,8 @@ public Builder mergeStakeTransferOwnership(com.github.iotexproject.grpc.types.St
} else {
if (actionCase_ == 46) {
stakeTransferOwnershipBuilder_.mergeFrom(value);
- } else {
- stakeTransferOwnershipBuilder_.setMessage(value);
}
+ stakeTransferOwnershipBuilder_.setMessage(value);
}
actionCase_ = 46;
return this;
@@ -8141,14 +8385,14 @@ public com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder getSta
/**
* .iotextypes.StakeTransferOwnership stakeTransferOwnership = 46;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeTransferOwnership, com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder, com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder>
getStakeTransferOwnershipFieldBuilder() {
if (stakeTransferOwnershipBuilder_ == null) {
if (!(actionCase_ == 46)) {
action_ = com.github.iotexproject.grpc.types.StakeTransferOwnership.getDefaultInstance();
}
- stakeTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeTransferOwnership, com.github.iotexproject.grpc.types.StakeTransferOwnership.Builder, com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder>(
(com.github.iotexproject.grpc.types.StakeTransferOwnership) action_,
getParentForChildren(),
@@ -8156,11 +8400,11 @@ public com.github.iotexproject.grpc.types.StakeTransferOwnershipOrBuilder getSta
action_ = null;
}
actionCase_ = 46;
- onChanged();
+ onChanged();;
return stakeTransferOwnershipBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateRegister, com.github.iotexproject.grpc.types.CandidateRegister.Builder, com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder> candidateRegisterBuilder_;
/**
* .iotextypes.CandidateRegister candidateRegister = 47;
@@ -8234,9 +8478,8 @@ public Builder mergeCandidateRegister(com.github.iotexproject.grpc.types.Candida
} else {
if (actionCase_ == 47) {
candidateRegisterBuilder_.mergeFrom(value);
- } else {
- candidateRegisterBuilder_.setMessage(value);
}
+ candidateRegisterBuilder_.setMessage(value);
}
actionCase_ = 47;
return this;
@@ -8283,14 +8526,14 @@ public com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder getCandidat
/**
* .iotextypes.CandidateRegister candidateRegister = 47;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateRegister, com.github.iotexproject.grpc.types.CandidateRegister.Builder, com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder>
getCandidateRegisterFieldBuilder() {
if (candidateRegisterBuilder_ == null) {
if (!(actionCase_ == 47)) {
action_ = com.github.iotexproject.grpc.types.CandidateRegister.getDefaultInstance();
}
- candidateRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateRegister, com.github.iotexproject.grpc.types.CandidateRegister.Builder, com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateRegister) action_,
getParentForChildren(),
@@ -8298,11 +8541,11 @@ public com.github.iotexproject.grpc.types.CandidateRegisterOrBuilder getCandidat
action_ = null;
}
actionCase_ = 47;
- onChanged();
+ onChanged();;
return candidateRegisterBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateBasicInfo, com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder, com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder> candidateUpdateBuilder_;
/**
* .iotextypes.CandidateBasicInfo candidateUpdate = 48;
@@ -8376,9 +8619,8 @@ public Builder mergeCandidateUpdate(com.github.iotexproject.grpc.types.Candidate
} else {
if (actionCase_ == 48) {
candidateUpdateBuilder_.mergeFrom(value);
- } else {
- candidateUpdateBuilder_.setMessage(value);
}
+ candidateUpdateBuilder_.setMessage(value);
}
actionCase_ = 48;
return this;
@@ -8425,14 +8667,14 @@ public com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder getCandida
/**
* .iotextypes.CandidateBasicInfo candidateUpdate = 48;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateBasicInfo, com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder, com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder>
getCandidateUpdateFieldBuilder() {
if (candidateUpdateBuilder_ == null) {
if (!(actionCase_ == 48)) {
action_ = com.github.iotexproject.grpc.types.CandidateBasicInfo.getDefaultInstance();
}
- candidateUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateBasicInfo, com.github.iotexproject.grpc.types.CandidateBasicInfo.Builder, com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateBasicInfo) action_,
getParentForChildren(),
@@ -8440,11 +8682,11 @@ public com.github.iotexproject.grpc.types.CandidateBasicInfoOrBuilder getCandida
action_ = null;
}
actionCase_ = 48;
- onChanged();
+ onChanged();;
return candidateUpdateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateActivate, com.github.iotexproject.grpc.types.CandidateActivate.Builder, com.github.iotexproject.grpc.types.CandidateActivateOrBuilder> candidateActivateBuilder_;
/**
* .iotextypes.CandidateActivate candidateActivate = 49;
@@ -8518,9 +8760,8 @@ public Builder mergeCandidateActivate(com.github.iotexproject.grpc.types.Candida
} else {
if (actionCase_ == 49) {
candidateActivateBuilder_.mergeFrom(value);
- } else {
- candidateActivateBuilder_.setMessage(value);
}
+ candidateActivateBuilder_.setMessage(value);
}
actionCase_ = 49;
return this;
@@ -8567,14 +8808,14 @@ public com.github.iotexproject.grpc.types.CandidateActivateOrBuilder getCandidat
/**
* .iotextypes.CandidateActivate candidateActivate = 49;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateActivate, com.github.iotexproject.grpc.types.CandidateActivate.Builder, com.github.iotexproject.grpc.types.CandidateActivateOrBuilder>
getCandidateActivateFieldBuilder() {
if (candidateActivateBuilder_ == null) {
if (!(actionCase_ == 49)) {
action_ = com.github.iotexproject.grpc.types.CandidateActivate.getDefaultInstance();
}
- candidateActivateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateActivateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateActivate, com.github.iotexproject.grpc.types.CandidateActivate.Builder, com.github.iotexproject.grpc.types.CandidateActivateOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateActivate) action_,
getParentForChildren(),
@@ -8582,11 +8823,11 @@ public com.github.iotexproject.grpc.types.CandidateActivateOrBuilder getCandidat
action_ = null;
}
actionCase_ = 49;
- onChanged();
+ onChanged();;
return candidateActivateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateEndorsement, com.github.iotexproject.grpc.types.CandidateEndorsement.Builder, com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder> candidateEndorsementBuilder_;
/**
* .iotextypes.CandidateEndorsement candidateEndorsement = 51;
@@ -8660,9 +8901,8 @@ public Builder mergeCandidateEndorsement(com.github.iotexproject.grpc.types.Cand
} else {
if (actionCase_ == 51) {
candidateEndorsementBuilder_.mergeFrom(value);
- } else {
- candidateEndorsementBuilder_.setMessage(value);
}
+ candidateEndorsementBuilder_.setMessage(value);
}
actionCase_ = 51;
return this;
@@ -8709,14 +8949,14 @@ public com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder getCandi
/**
* .iotextypes.CandidateEndorsement candidateEndorsement = 51;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateEndorsement, com.github.iotexproject.grpc.types.CandidateEndorsement.Builder, com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder>
getCandidateEndorsementFieldBuilder() {
if (candidateEndorsementBuilder_ == null) {
if (!(actionCase_ == 51)) {
action_ = com.github.iotexproject.grpc.types.CandidateEndorsement.getDefaultInstance();
}
- candidateEndorsementBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateEndorsementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateEndorsement, com.github.iotexproject.grpc.types.CandidateEndorsement.Builder, com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateEndorsement) action_,
getParentForChildren(),
@@ -8724,11 +8964,11 @@ public com.github.iotexproject.grpc.types.CandidateEndorsementOrBuilder getCandi
action_ = null;
}
actionCase_ = 51;
- onChanged();
+ onChanged();;
return candidateEndorsementBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateTransferOwnership, com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder, com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder> candidateTransferOwnershipBuilder_;
/**
* .iotextypes.CandidateTransferOwnership candidateTransferOwnership = 52;
@@ -8802,9 +9042,8 @@ public Builder mergeCandidateTransferOwnership(com.github.iotexproject.grpc.type
} else {
if (actionCase_ == 52) {
candidateTransferOwnershipBuilder_.mergeFrom(value);
- } else {
- candidateTransferOwnershipBuilder_.setMessage(value);
}
+ candidateTransferOwnershipBuilder_.setMessage(value);
}
actionCase_ = 52;
return this;
@@ -8851,14 +9090,14 @@ public com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder ge
/**
* .iotextypes.CandidateTransferOwnership candidateTransferOwnership = 52;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateTransferOwnership, com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder, com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder>
getCandidateTransferOwnershipFieldBuilder() {
if (candidateTransferOwnershipBuilder_ == null) {
if (!(actionCase_ == 52)) {
action_ = com.github.iotexproject.grpc.types.CandidateTransferOwnership.getDefaultInstance();
}
- candidateTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ candidateTransferOwnershipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.CandidateTransferOwnership, com.github.iotexproject.grpc.types.CandidateTransferOwnership.Builder, com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder>(
(com.github.iotexproject.grpc.types.CandidateTransferOwnership) action_,
getParentForChildren(),
@@ -8866,11 +9105,11 @@ public com.github.iotexproject.grpc.types.CandidateTransferOwnershipOrBuilder ge
action_ = null;
}
actionCase_ = 52;
- onChanged();
+ onChanged();;
return candidateTransferOwnershipBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeMigrate, com.github.iotexproject.grpc.types.StakeMigrate.Builder, com.github.iotexproject.grpc.types.StakeMigrateOrBuilder> stakeMigrateBuilder_;
/**
* .iotextypes.StakeMigrate stakeMigrate = 53;
@@ -8944,9 +9183,8 @@ public Builder mergeStakeMigrate(com.github.iotexproject.grpc.types.StakeMigrate
} else {
if (actionCase_ == 53) {
stakeMigrateBuilder_.mergeFrom(value);
- } else {
- stakeMigrateBuilder_.setMessage(value);
}
+ stakeMigrateBuilder_.setMessage(value);
}
actionCase_ = 53;
return this;
@@ -8993,14 +9231,14 @@ public com.github.iotexproject.grpc.types.StakeMigrateOrBuilder getStakeMigrateO
/**
* .iotextypes.StakeMigrate stakeMigrate = 53;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeMigrate, com.github.iotexproject.grpc.types.StakeMigrate.Builder, com.github.iotexproject.grpc.types.StakeMigrateOrBuilder>
getStakeMigrateFieldBuilder() {
if (stakeMigrateBuilder_ == null) {
if (!(actionCase_ == 53)) {
action_ = com.github.iotexproject.grpc.types.StakeMigrate.getDefaultInstance();
}
- stakeMigrateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ stakeMigrateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.StakeMigrate, com.github.iotexproject.grpc.types.StakeMigrate.Builder, com.github.iotexproject.grpc.types.StakeMigrateOrBuilder>(
(com.github.iotexproject.grpc.types.StakeMigrate) action_,
getParentForChildren(),
@@ -9008,11 +9246,11 @@ public com.github.iotexproject.grpc.types.StakeMigrateOrBuilder getStakeMigrateO
action_ = null;
}
actionCase_ = 53;
- onChanged();
+ onChanged();;
return stakeMigrateBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PutPollResult, com.github.iotexproject.grpc.types.PutPollResult.Builder, com.github.iotexproject.grpc.types.PutPollResultOrBuilder> putPollResultBuilder_;
/**
* .iotextypes.PutPollResult putPollResult = 50;
@@ -9086,9 +9324,8 @@ public Builder mergePutPollResult(com.github.iotexproject.grpc.types.PutPollResu
} else {
if (actionCase_ == 50) {
putPollResultBuilder_.mergeFrom(value);
- } else {
- putPollResultBuilder_.setMessage(value);
}
+ putPollResultBuilder_.setMessage(value);
}
actionCase_ = 50;
return this;
@@ -9135,14 +9372,14 @@ public com.github.iotexproject.grpc.types.PutPollResultOrBuilder getPutPollResul
/**
* .iotextypes.PutPollResult putPollResult = 50;
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PutPollResult, com.github.iotexproject.grpc.types.PutPollResult.Builder, com.github.iotexproject.grpc.types.PutPollResultOrBuilder>
getPutPollResultFieldBuilder() {
if (putPollResultBuilder_ == null) {
if (!(actionCase_ == 50)) {
action_ = com.github.iotexproject.grpc.types.PutPollResult.getDefaultInstance();
}
- putPollResultBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ putPollResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.iotexproject.grpc.types.PutPollResult, com.github.iotexproject.grpc.types.PutPollResult.Builder, com.github.iotexproject.grpc.types.PutPollResultOrBuilder>(
(com.github.iotexproject.grpc.types.PutPollResult) action_,
getParentForChildren(),
@@ -9150,9 +9387,21 @@ public com.github.iotexproject.grpc.types.PutPollResultOrBuilder getPutPollResul
action_ = null;
}
actionCase_ = 50;
- onChanged();
+ onChanged();;
return putPollResultBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotextypes.ActionCore)
}
@@ -9174,18 +9423,7 @@ public ActionCore parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ActionCore(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionCoreOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/types/ActionCoreOrBuilder.java
index cb15447..6fd6e70 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionCoreOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionCoreOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -687,5 +685,5 @@ com.github.iotexproject.grpc.types.AccessTupleOrBuilder getAccessListOrBuilder(
*/
com.github.iotexproject.grpc.types.PutPollResultOrBuilder getPutPollResultOrBuilder();
- com.github.iotexproject.grpc.types.ActionCore.ActionCase getActionCase();
+ public com.github.iotexproject.grpc.types.ActionCore.ActionCase getActionCase();
}
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransfer.java b/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransfer.java
index 2349150..0580746 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransfer.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransfer.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -13,21 +11,12 @@
* Protobuf type {@code iotextypes.ActionEvmTransfer}
*/
public final class ActionEvmTransfer extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotextypes.ActionEvmTransfer)
ActionEvmTransferOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ActionEvmTransfer.class.getName());
- }
// Use ActionEvmTransfer.newBuilder() to construct.
- private ActionEvmTransfer(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ActionEvmTransfer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActionEvmTransfer() {
@@ -35,13 +24,85 @@ private ActionEvmTransfer() {
evmTransfers_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ActionEvmTransfer();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ActionEvmTransfer(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+
+ actionHash_ = input.readBytes();
+ break;
+ }
+ case 16: {
+
+ numEvmTransfers_ = input.readUInt64();
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ evmTransfers_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ evmTransfers_.add(
+ input.readMessage(com.github.iotexproject.grpc.types.EvmTransfer.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ evmTransfers_ = java.util.Collections.unmodifiableList(evmTransfers_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionEvmTransfer_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionEvmTransfer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -49,7 +110,7 @@ private ActionEvmTransfer() {
}
public static final int ACTIONHASH_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString actionHash_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString actionHash_;
/**
* bytes actionHash = 1;
* @return The actionHash.
@@ -60,7 +121,7 @@ public com.google.protobuf.ByteString getActionHash() {
}
public static final int NUMEVMTRANSFERS_FIELD_NUMBER = 2;
- private long numEvmTransfers_ = 0L;
+ private long numEvmTransfers_;
/**
* uint64 numEvmTransfers = 2;
* @return The numEvmTransfers.
@@ -71,7 +132,6 @@ public long getNumEvmTransfers() {
}
public static final int EVMTRANSFERS_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
private java.util.List evmTransfers_;
/**
* repeated .iotextypes.EvmTransfer evmTransfers = 3;
@@ -134,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < evmTransfers_.size(); i++) {
output.writeMessage(3, evmTransfers_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -155,7 +215,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, evmTransfers_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -176,7 +236,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getNumEvmTransfers()) return false;
if (!getEvmTransfersList()
.equals(other.getEvmTransfersList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -196,7 +256,7 @@ public int hashCode() {
hash = (37 * hash) + EVMTRANSFERS_FIELD_NUMBER;
hash = (53 * hash) + getEvmTransfersList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -235,41 +295,39 @@ public static com.github.iotexproject.grpc.types.ActionEvmTransfer parseFrom(
}
public static com.github.iotexproject.grpc.types.ActionEvmTransfer parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.ActionEvmTransfer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.types.ActionEvmTransfer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.types.ActionEvmTransfer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.types.ActionEvmTransfer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.ActionEvmTransfer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -289,7 +347,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -301,7 +359,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotextypes.ActionEvmTransfer}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotextypes.ActionEvmTransfer)
com.github.iotexproject.grpc.types.ActionEvmTransferOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -310,7 +368,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionEvmTransfer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -319,27 +377,33 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.types.ActionEvmTransfer.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getEvmTransfersFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
actionHash_ = com.google.protobuf.ByteString.EMPTY;
+
numEvmTransfers_ = 0L;
+
if (evmTransfersBuilder_ == null) {
evmTransfers_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- evmTransfers_ = null;
evmTransfersBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -366,34 +430,54 @@ public com.github.iotexproject.grpc.types.ActionEvmTransfer build() {
@java.lang.Override
public com.github.iotexproject.grpc.types.ActionEvmTransfer buildPartial() {
com.github.iotexproject.grpc.types.ActionEvmTransfer result = new com.github.iotexproject.grpc.types.ActionEvmTransfer(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.github.iotexproject.grpc.types.ActionEvmTransfer result) {
+ int from_bitField0_ = bitField0_;
+ result.actionHash_ = actionHash_;
+ result.numEvmTransfers_ = numEvmTransfers_;
if (evmTransfersBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
evmTransfers_ = java.util.Collections.unmodifiableList(evmTransfers_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.evmTransfers_ = evmTransfers_;
} else {
result.evmTransfers_ = evmTransfersBuilder_.build();
}
+ onBuilt();
+ return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.types.ActionEvmTransfer result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.actionHash_ = actionHash_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.numEvmTransfers_ = numEvmTransfers_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.types.ActionEvmTransfer) {
@@ -416,7 +500,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionEvmTransfer ot
if (!other.evmTransfers_.isEmpty()) {
if (evmTransfers_.isEmpty()) {
evmTransfers_ = other.evmTransfers_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEvmTransfersIsMutable();
evmTransfers_.addAll(other.evmTransfers_);
@@ -429,16 +513,16 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionEvmTransfer ot
evmTransfersBuilder_.dispose();
evmTransfersBuilder_ = null;
evmTransfers_ = other.evmTransfers_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
evmTransfersBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEvmTransfersFieldBuilder() : null;
} else {
evmTransfersBuilder_.addAllMessages(other.evmTransfers_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -453,53 +537,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.types.ActionEvmTransfer parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- actionHash_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16: {
- numEvmTransfers_ = input.readUInt64();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26: {
- com.github.iotexproject.grpc.types.EvmTransfer m =
- input.readMessage(
- com.github.iotexproject.grpc.types.EvmTransfer.parser(),
- extensionRegistry);
- if (evmTransfersBuilder_ == null) {
- ensureEvmTransfersIsMutable();
- evmTransfers_.add(m);
- } else {
- evmTransfersBuilder_.addMessage(m);
- }
- break;
- } // case 26
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.types.ActionEvmTransfer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
private int bitField0_;
@@ -519,9 +567,11 @@ public com.google.protobuf.ByteString getActionHash() {
* @return This builder for chaining.
*/
public Builder setActionHash(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
actionHash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -530,7 +580,7 @@ public Builder setActionHash(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearActionHash() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
actionHash_ = getDefaultInstance().getActionHash();
onChanged();
return this;
@@ -551,9 +601,8 @@ public long getNumEvmTransfers() {
* @return This builder for chaining.
*/
public Builder setNumEvmTransfers(long value) {
-
+
numEvmTransfers_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -562,7 +611,7 @@ public Builder setNumEvmTransfers(long value) {
* @return This builder for chaining.
*/
public Builder clearNumEvmTransfers() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
numEvmTransfers_ = 0L;
onChanged();
return this;
@@ -571,13 +620,13 @@ public Builder clearNumEvmTransfers() {
private java.util.List evmTransfers_ =
java.util.Collections.emptyList();
private void ensureEvmTransfersIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
evmTransfers_ = new java.util.ArrayList(evmTransfers_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000001;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.EvmTransfer, com.github.iotexproject.grpc.types.EvmTransfer.Builder, com.github.iotexproject.grpc.types.EvmTransferOrBuilder> evmTransfersBuilder_;
/**
@@ -723,7 +772,7 @@ public Builder addAllEvmTransfers(
public Builder clearEvmTransfers() {
if (evmTransfersBuilder_ == null) {
evmTransfers_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
evmTransfersBuilder_.clear();
@@ -793,20 +842,32 @@ public com.github.iotexproject.grpc.types.EvmTransfer.Builder addEvmTransfersBui
getEvmTransfersBuilderList() {
return getEvmTransfersFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.EvmTransfer, com.github.iotexproject.grpc.types.EvmTransfer.Builder, com.github.iotexproject.grpc.types.EvmTransferOrBuilder>
getEvmTransfersFieldBuilder() {
if (evmTransfersBuilder_ == null) {
- evmTransfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ evmTransfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.iotexproject.grpc.types.EvmTransfer, com.github.iotexproject.grpc.types.EvmTransfer.Builder, com.github.iotexproject.grpc.types.EvmTransferOrBuilder>(
evmTransfers_,
- ((bitField0_ & 0x00000004) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
evmTransfers_ = null;
}
return evmTransfersBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotextypes.ActionEvmTransfer)
}
@@ -828,18 +889,7 @@ public ActionEvmTransfer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ActionEvmTransfer(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransferOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransferOrBuilder.java
index d4b36f5..9e40f2e 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransferOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionEvmTransferOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionHash.java b/src/main/java/com/github/iotexproject/grpc/types/ActionHash.java
index 03f222b..f2c1a79 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionHash.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionHash.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -9,34 +7,79 @@
* Protobuf type {@code iotextypes.ActionHash}
*/
public final class ActionHash extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotextypes.ActionHash)
ActionHashOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ActionHash.class.getName());
- }
// Use ActionHash.newBuilder() to construct.
- private ActionHash(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private ActionHash(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActionHash() {
hash_ = com.google.protobuf.ByteString.EMPTY;
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ActionHash();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ActionHash(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+
+ hash_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionHash_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionHash_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -44,7 +87,7 @@ private ActionHash() {
}
public static final int HASH_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString hash_;
/**
* bytes hash = 1;
* @return The hash.
@@ -71,7 +114,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!hash_.isEmpty()) {
output.writeBytes(1, hash_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -84,7 +127,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, hash_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -101,7 +144,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getHash()
.equals(other.getHash())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -114,7 +157,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -153,41 +196,39 @@ public static com.github.iotexproject.grpc.types.ActionHash parseFrom(
}
public static com.github.iotexproject.grpc.types.ActionHash parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.ActionHash parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.github.iotexproject.grpc.types.ActionHash parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
-
public static com.github.iotexproject.grpc.types.ActionHash parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.iotexproject.grpc.types.ActionHash parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.iotexproject.grpc.types.ActionHash parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -207,7 +248,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -215,7 +256,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code iotextypes.ActionHash}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:iotextypes.ActionHash)
com.github.iotexproject.grpc.types.ActionHashOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -224,7 +265,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.iotexproject.grpc.types.ActionOuterClass.internal_static_iotextypes_ActionHash_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -233,19 +274,24 @@ public static final class Builder extends
// Construct using com.github.iotexproject.grpc.types.ActionHash.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
hash_ = com.google.protobuf.ByteString.EMPTY;
+
return this;
}
@@ -272,18 +318,43 @@ public com.github.iotexproject.grpc.types.ActionHash build() {
@java.lang.Override
public com.github.iotexproject.grpc.types.ActionHash buildPartial() {
com.github.iotexproject.grpc.types.ActionHash result = new com.github.iotexproject.grpc.types.ActionHash(this);
- if (bitField0_ != 0) { buildPartial0(result); }
+ result.hash_ = hash_;
onBuilt();
return result;
}
- private void buildPartial0(com.github.iotexproject.grpc.types.ActionHash result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.hash_ = hash_;
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
-
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.iotexproject.grpc.types.ActionHash) {
@@ -299,7 +370,7 @@ public Builder mergeFrom(com.github.iotexproject.grpc.types.ActionHash other) {
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -314,38 +385,19 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.github.iotexproject.grpc.types.ActionHash parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- hash_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.github.iotexproject.grpc.types.ActionHash) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
@@ -362,9 +414,11 @@ public com.google.protobuf.ByteString getHash() {
* @return This builder for chaining.
*/
public Builder setHash(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
hash_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -373,11 +427,23 @@ public Builder setHash(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearHash() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:iotextypes.ActionHash)
}
@@ -399,18 +465,7 @@ public ActionHash parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ActionHash(input, extensionRegistry);
}
};
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionHashOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/types/ActionHashOrBuilder.java
index 49874e8..ee8141d 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionHashOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionHashOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionOrBuilder.java b/src/main/java/com/github/iotexproject/grpc/types/ActionOrBuilder.java
index 810911f..5729292 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionOrBuilder.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionOrBuilder.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
diff --git a/src/main/java/com/github/iotexproject/grpc/types/ActionOuterClass.java b/src/main/java/com/github/iotexproject/grpc/types/ActionOuterClass.java
index ef3d10f..4b19068 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/ActionOuterClass.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/ActionOuterClass.java
@@ -1,21 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
public final class ActionOuterClass {
private ActionOuterClass() {}
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- ActionOuterClass.class.getName());
- }
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
@@ -28,267 +17,267 @@ public static void registerAllExtensions(
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Transfer_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Transfer_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Candidate_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Candidate_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CandidateList_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CandidateList_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PutPollResult_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PutPollResult_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_TxContainer_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_TxContainer_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Execution_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Execution_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_AccessTuple_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_AccessTuple_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_BlobTxSidecar_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_BlobTxSidecar_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_BlobTxData_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_BlobTxData_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_BlobTxSidecars_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_BlobTxSidecars_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StakeCreate_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StakeCreate_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StakeMigrate_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StakeMigrate_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StakeReclaim_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StakeReclaim_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StakeAddDeposit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StakeAddDeposit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StakeRestake_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StakeRestake_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StakeChangeCandidate_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StakeChangeCandidate_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StakeTransferOwnership_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StakeTransferOwnership_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CandidateBasicInfo_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CandidateBasicInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CandidateRegister_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CandidateRegister_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CandidateTransferOwnership_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CandidateTransferOwnership_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CandidateActivate_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CandidateActivate_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CandidateEndorsement_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CandidateEndorsement_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StartSubChain_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StartSubChain_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_StopSubChain_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_StopSubChain_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_MerkleRoot_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_MerkleRoot_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PutBlock_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PutBlock_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CreateDeposit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CreateDeposit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_SettleDeposit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_SettleDeposit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_CreatePlumChain_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_CreatePlumChain_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_TerminatePlumChain_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_TerminatePlumChain_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumPutBlock_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumPutBlock_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumPutBlock_RootsEntry_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumPutBlock_RootsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumCreateDeposit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumCreateDeposit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumStartExit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumStartExit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumChallengeExit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumChallengeExit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumResponseChallengeExit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumResponseChallengeExit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumFinalizeExit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumFinalizeExit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumSettleDeposit_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumSettleDeposit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_PlumTransfer_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_PlumTransfer_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_ActionCore_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_ActionCore_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Action_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Action_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Actions_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Actions_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_ActionHash_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_ActionHash_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Receipt_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Receipt_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Log_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Log_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_Logs_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_Logs_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_EvmTransfer_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_EvmTransfer_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_EvmTransferList_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_EvmTransferList_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_ActionEvmTransfer_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_ActionEvmTransfer_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_BlockEvmTransfer_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_BlockEvmTransfer_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_DepositToRewardingFund_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_DepositToRewardingFund_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_ClaimFromRewardingFund_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_ClaimFromRewardingFund_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_iotextypes_GrantReward_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_iotextypes_GrantReward_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -482,322 +471,321 @@ public static void registerAllExtensions(
internal_static_iotextypes_Transfer_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_iotextypes_Transfer_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Transfer_descriptor,
new java.lang.String[] { "Amount", "Recipient", "Payload", });
internal_static_iotextypes_Candidate_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_iotextypes_Candidate_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Candidate_descriptor,
new java.lang.String[] { "Address", "Votes", "PubKey", "RewardAddress", });
internal_static_iotextypes_CandidateList_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_iotextypes_CandidateList_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CandidateList_descriptor,
new java.lang.String[] { "Candidates", });
internal_static_iotextypes_PutPollResult_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_iotextypes_PutPollResult_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PutPollResult_descriptor,
new java.lang.String[] { "Height", "Candidates", });
internal_static_iotextypes_TxContainer_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_iotextypes_TxContainer_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_TxContainer_descriptor,
new java.lang.String[] { "Raw", });
internal_static_iotextypes_Execution_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_iotextypes_Execution_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Execution_descriptor,
new java.lang.String[] { "Amount", "Contract", "Data", });
internal_static_iotextypes_AccessTuple_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_iotextypes_AccessTuple_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_AccessTuple_descriptor,
new java.lang.String[] { "Address", "StorageKeys", });
internal_static_iotextypes_BlobTxSidecar_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_iotextypes_BlobTxSidecar_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_BlobTxSidecar_descriptor,
new java.lang.String[] { "Blobs", "Commitments", "Proofs", });
internal_static_iotextypes_BlobTxData_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_iotextypes_BlobTxData_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_BlobTxData_descriptor,
new java.lang.String[] { "BlobFeeCap", "BlobHashes", "BlobTxSidecar", });
internal_static_iotextypes_BlobTxSidecars_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_iotextypes_BlobTxSidecars_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_BlobTxSidecars_descriptor,
new java.lang.String[] { "TxHash", "Sidecars", });
internal_static_iotextypes_StakeCreate_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_iotextypes_StakeCreate_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StakeCreate_descriptor,
new java.lang.String[] { "CandidateName", "StakedAmount", "StakedDuration", "AutoStake", "Payload", });
internal_static_iotextypes_StakeMigrate_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_iotextypes_StakeMigrate_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StakeMigrate_descriptor,
new java.lang.String[] { "BucketIndex", });
internal_static_iotextypes_StakeReclaim_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_iotextypes_StakeReclaim_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StakeReclaim_descriptor,
new java.lang.String[] { "BucketIndex", "Payload", });
internal_static_iotextypes_StakeAddDeposit_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_iotextypes_StakeAddDeposit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StakeAddDeposit_descriptor,
new java.lang.String[] { "BucketIndex", "Amount", "Payload", });
internal_static_iotextypes_StakeRestake_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_iotextypes_StakeRestake_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StakeRestake_descriptor,
new java.lang.String[] { "BucketIndex", "StakedDuration", "AutoStake", "Payload", });
internal_static_iotextypes_StakeChangeCandidate_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_iotextypes_StakeChangeCandidate_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StakeChangeCandidate_descriptor,
new java.lang.String[] { "BucketIndex", "CandidateName", "Payload", });
internal_static_iotextypes_StakeTransferOwnership_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_iotextypes_StakeTransferOwnership_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StakeTransferOwnership_descriptor,
new java.lang.String[] { "BucketIndex", "VoterAddress", "Payload", });
internal_static_iotextypes_CandidateBasicInfo_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_iotextypes_CandidateBasicInfo_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CandidateBasicInfo_descriptor,
new java.lang.String[] { "Name", "OperatorAddress", "RewardAddress", });
internal_static_iotextypes_CandidateRegister_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_iotextypes_CandidateRegister_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CandidateRegister_descriptor,
new java.lang.String[] { "Candidate", "StakedAmount", "StakedDuration", "AutoStake", "OwnerAddress", "Payload", });
internal_static_iotextypes_CandidateTransferOwnership_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_iotextypes_CandidateTransferOwnership_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CandidateTransferOwnership_descriptor,
new java.lang.String[] { "NewOwnerAddress", "Payload", });
internal_static_iotextypes_CandidateActivate_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_iotextypes_CandidateActivate_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CandidateActivate_descriptor,
new java.lang.String[] { "BucketIndex", });
internal_static_iotextypes_CandidateEndorsement_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_iotextypes_CandidateEndorsement_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CandidateEndorsement_descriptor,
new java.lang.String[] { "BucketIndex", "Endorse", "Op", });
internal_static_iotextypes_StartSubChain_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_iotextypes_StartSubChain_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StartSubChain_descriptor,
new java.lang.String[] { "ChainID", "SecurityDeposit", "OperationDeposit", "StartHeight", "ParentHeightOffset", });
internal_static_iotextypes_StopSubChain_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_iotextypes_StopSubChain_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_StopSubChain_descriptor,
new java.lang.String[] { "ChainID", "StopHeight", "SubChainAddress", });
internal_static_iotextypes_MerkleRoot_descriptor =
getDescriptor().getMessageTypes().get(24);
internal_static_iotextypes_MerkleRoot_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_MerkleRoot_descriptor,
new java.lang.String[] { "Name", "Value", });
internal_static_iotextypes_PutBlock_descriptor =
getDescriptor().getMessageTypes().get(25);
internal_static_iotextypes_PutBlock_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PutBlock_descriptor,
new java.lang.String[] { "SubChainAddress", "Height", "Roots", });
internal_static_iotextypes_CreateDeposit_descriptor =
getDescriptor().getMessageTypes().get(26);
internal_static_iotextypes_CreateDeposit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CreateDeposit_descriptor,
new java.lang.String[] { "ChainID", "Amount", "Recipient", });
internal_static_iotextypes_SettleDeposit_descriptor =
getDescriptor().getMessageTypes().get(27);
internal_static_iotextypes_SettleDeposit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_SettleDeposit_descriptor,
new java.lang.String[] { "Amount", "Recipient", "Index", });
internal_static_iotextypes_CreatePlumChain_descriptor =
getDescriptor().getMessageTypes().get(28);
internal_static_iotextypes_CreatePlumChain_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_CreatePlumChain_descriptor,
new java.lang.String[] { });
internal_static_iotextypes_TerminatePlumChain_descriptor =
getDescriptor().getMessageTypes().get(29);
internal_static_iotextypes_TerminatePlumChain_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_TerminatePlumChain_descriptor,
new java.lang.String[] { "SubChainAddress", });
internal_static_iotextypes_PlumPutBlock_descriptor =
getDescriptor().getMessageTypes().get(30);
internal_static_iotextypes_PlumPutBlock_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumPutBlock_descriptor,
new java.lang.String[] { "SubChainAddress", "Height", "Roots", });
internal_static_iotextypes_PlumPutBlock_RootsEntry_descriptor =
internal_static_iotextypes_PlumPutBlock_descriptor.getNestedTypes().get(0);
internal_static_iotextypes_PlumPutBlock_RootsEntry_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumPutBlock_RootsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_iotextypes_PlumCreateDeposit_descriptor =
getDescriptor().getMessageTypes().get(31);
internal_static_iotextypes_PlumCreateDeposit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumCreateDeposit_descriptor,
new java.lang.String[] { "SubChainAddress", "Amount", "Recipient", });
internal_static_iotextypes_PlumStartExit_descriptor =
getDescriptor().getMessageTypes().get(32);
internal_static_iotextypes_PlumStartExit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumStartExit_descriptor,
new java.lang.String[] { "SubChainAddress", "PreviousTransfer", "PreviousTransferBlockProof", "PreviousTransferBlockHeight", "ExitTransfer", "ExitTransferBlockProof", "ExitTransferBlockHeight", });
internal_static_iotextypes_PlumChallengeExit_descriptor =
getDescriptor().getMessageTypes().get(33);
internal_static_iotextypes_PlumChallengeExit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumChallengeExit_descriptor,
new java.lang.String[] { "SubChainAddress", "CoinID", "ChallengeTransfer", "ChallengeTransferBlockProof", "ChallengeTransferBlockHeight", });
internal_static_iotextypes_PlumResponseChallengeExit_descriptor =
getDescriptor().getMessageTypes().get(34);
internal_static_iotextypes_PlumResponseChallengeExit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumResponseChallengeExit_descriptor,
new java.lang.String[] { "SubChainAddress", "CoinID", "ChallengeTransfer", "ResponseTransfer", "ResponseTransferBlockProof", "PreviousTransferBlockHeight", });
internal_static_iotextypes_PlumFinalizeExit_descriptor =
getDescriptor().getMessageTypes().get(35);
internal_static_iotextypes_PlumFinalizeExit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumFinalizeExit_descriptor,
new java.lang.String[] { "SubChainAddress", "CoinID", });
internal_static_iotextypes_PlumSettleDeposit_descriptor =
getDescriptor().getMessageTypes().get(36);
internal_static_iotextypes_PlumSettleDeposit_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumSettleDeposit_descriptor,
new java.lang.String[] { "CoinID", });
internal_static_iotextypes_PlumTransfer_descriptor =
getDescriptor().getMessageTypes().get(37);
internal_static_iotextypes_PlumTransfer_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_PlumTransfer_descriptor,
new java.lang.String[] { "CoinID", "Denomination", "Owner", "Recipient", });
internal_static_iotextypes_ActionCore_descriptor =
getDescriptor().getMessageTypes().get(38);
internal_static_iotextypes_ActionCore_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_ActionCore_descriptor,
new java.lang.String[] { "Version", "Nonce", "GasLimit", "GasPrice", "ChainID", "GasTipCap", "GasFeeCap", "BlobTxData", "AccessList", "TxType", "Transfer", "TxContainer", "Execution", "StartSubChain", "StopSubChain", "PutBlock", "CreateDeposit", "SettleDeposit", "CreatePlumChain", "TerminatePlumChain", "PlumPutBlock", "PlumCreateDeposit", "PlumStartExit", "PlumChallengeExit", "PlumResponseChallengeExit", "PlumFinalizeExit", "PlumSettleDeposit", "PlumTransfer", "DepositToRewardingFund", "ClaimFromRewardingFund", "GrantReward", "StakeCreate", "StakeUnstake", "StakeWithdraw", "StakeAddDeposit", "StakeRestake", "StakeChangeCandidate", "StakeTransferOwnership", "CandidateRegister", "CandidateUpdate", "CandidateActivate", "CandidateEndorsement", "CandidateTransferOwnership", "StakeMigrate", "PutPollResult", "Action", });
internal_static_iotextypes_Action_descriptor =
getDescriptor().getMessageTypes().get(39);
internal_static_iotextypes_Action_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Action_descriptor,
new java.lang.String[] { "Core", "SenderPubKey", "Signature", "Encoding", });
internal_static_iotextypes_Actions_descriptor =
getDescriptor().getMessageTypes().get(40);
internal_static_iotextypes_Actions_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Actions_descriptor,
new java.lang.String[] { "Actions", });
internal_static_iotextypes_ActionHash_descriptor =
getDescriptor().getMessageTypes().get(41);
internal_static_iotextypes_ActionHash_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_ActionHash_descriptor,
new java.lang.String[] { "Hash", });
internal_static_iotextypes_Receipt_descriptor =
getDescriptor().getMessageTypes().get(42);
internal_static_iotextypes_Receipt_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Receipt_descriptor,
new java.lang.String[] { "Status", "BlkHeight", "ActHash", "GasConsumed", "ContractAddress", "Logs", "ExecutionRevertMsg", "TxIndex", "BlobGasUsed", "BlobGasPrice", "EffectiveGasPrice", });
internal_static_iotextypes_Log_descriptor =
getDescriptor().getMessageTypes().get(43);
internal_static_iotextypes_Log_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Log_descriptor,
new java.lang.String[] { "ContractAddress", "Topics", "Data", "BlkHeight", "ActHash", "Index", "BlkHash", "TxIndex", });
internal_static_iotextypes_Logs_descriptor =
getDescriptor().getMessageTypes().get(44);
internal_static_iotextypes_Logs_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_Logs_descriptor,
new java.lang.String[] { "Logs", });
internal_static_iotextypes_EvmTransfer_descriptor =
getDescriptor().getMessageTypes().get(45);
internal_static_iotextypes_EvmTransfer_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_EvmTransfer_descriptor,
new java.lang.String[] { "Amount", "From", "To", });
internal_static_iotextypes_EvmTransferList_descriptor =
getDescriptor().getMessageTypes().get(46);
internal_static_iotextypes_EvmTransferList_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_EvmTransferList_descriptor,
new java.lang.String[] { "EvmTransfers", });
internal_static_iotextypes_ActionEvmTransfer_descriptor =
getDescriptor().getMessageTypes().get(47);
internal_static_iotextypes_ActionEvmTransfer_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_ActionEvmTransfer_descriptor,
new java.lang.String[] { "ActionHash", "NumEvmTransfers", "EvmTransfers", });
internal_static_iotextypes_BlockEvmTransfer_descriptor =
getDescriptor().getMessageTypes().get(48);
internal_static_iotextypes_BlockEvmTransfer_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_BlockEvmTransfer_descriptor,
new java.lang.String[] { "BlockHeight", "NumEvmTransfers", "ActionEvmTransfers", });
internal_static_iotextypes_DepositToRewardingFund_descriptor =
getDescriptor().getMessageTypes().get(49);
internal_static_iotextypes_DepositToRewardingFund_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_DepositToRewardingFund_descriptor,
new java.lang.String[] { "Amount", "Data", });
internal_static_iotextypes_ClaimFromRewardingFund_descriptor =
getDescriptor().getMessageTypes().get(50);
internal_static_iotextypes_ClaimFromRewardingFund_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_ClaimFromRewardingFund_descriptor,
new java.lang.String[] { "Amount", "Data", "Address", });
internal_static_iotextypes_GrantReward_descriptor =
getDescriptor().getMessageTypes().get(51);
internal_static_iotextypes_GrantReward_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_iotextypes_GrantReward_descriptor,
new java.lang.String[] { "Type", "Height", });
- descriptor.resolveAllFeaturesImmutable();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/src/main/java/com/github/iotexproject/grpc/types/Actions.java b/src/main/java/com/github/iotexproject/grpc/types/Actions.java
index a65ab21..d3d0e3c 100644
--- a/src/main/java/com/github/iotexproject/grpc/types/Actions.java
+++ b/src/main/java/com/github/iotexproject/grpc/types/Actions.java
@@ -1,7 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/types/action.proto
-// Protobuf Java Version: 4.29.1
package com.github.iotexproject.grpc.types;
@@ -13,34 +11,87 @@
* Protobuf type {@code iotextypes.Actions}
*/
public final class Actions extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:iotextypes.Actions)
ActionsOrBuilder {
private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 1,
- /* suffix= */ "",
- Actions.class.getName());
- }
// Use Actions.newBuilder() to construct.
- private Actions(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private Actions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Actions() {
actions_ = java.util.Collections.emptyList();
}
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Actions();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Actions(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ actions_ = new java.util.ArrayList