com.wavesplatform.api.grpc.BlockchainApiOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-schemas Show documentation
Show all versions of protobuf-schemas Show documentation
Waves Node protobuf java classes
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: waves/node/grpc/blockchain_api.proto
package com.wavesplatform.api.grpc;
public final class BlockchainApiOuterClass {
private BlockchainApiOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ActivationStatusRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.ActivationStatusRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int32 height = 1;
* @return The height.
*/
int getHeight();
}
/**
* Protobuf type {@code waves.node.grpc.ActivationStatusRequest}
*/
public static final class ActivationStatusRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.ActivationStatusRequest)
ActivationStatusRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActivationStatusRequest.newBuilder() to construct.
private ActivationStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActivationStatusRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActivationStatusRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActivationStatusRequest(
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: {
height_ = input.readInt32();
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.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private int height_;
/**
* int32 height = 1;
* @return The height.
*/
public int getHeight() {
return height_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (height_ != 0) {
output.writeInt32(1, height_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, height_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest other = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest) obj;
if (getHeight()
!= other.getHeight()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code waves.node.grpc.ActivationStatusRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.ActivationStatusRequest)
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
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();
height_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusRequest_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest build() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest buildPartial() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest result = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest(this);
result.height_ = height_;
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.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest) {
return mergeFrom((com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest other) {
if (other == com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest.getDefaultInstance()) return this;
if (other.getHeight() != 0) {
setHeight(other.getHeight());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int height_ ;
/**
* int32 height = 1;
* @return The height.
*/
public int getHeight() {
return height_;
}
/**
* int32 height = 1;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(int value) {
height_ = value;
onChanged();
return this;
}
/**
* int32 height = 1;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 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:waves.node.grpc.ActivationStatusRequest)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.ActivationStatusRequest)
private static final com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest();
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActivationStatusRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActivationStatusRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ActivationStatusResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.ActivationStatusResponse)
com.google.protobuf.MessageOrBuilder {
/**
* int32 height = 1;
* @return The height.
*/
int getHeight();
/**
* int32 voting_interval = 2;
* @return The votingInterval.
*/
int getVotingInterval();
/**
* int32 voting_threshold = 3;
* @return The votingThreshold.
*/
int getVotingThreshold();
/**
* int32 next_check = 4;
* @return The nextCheck.
*/
int getNextCheck();
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
java.util.List
getFeaturesList();
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus getFeatures(int index);
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
int getFeaturesCount();
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
java.util.List extends com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder>
getFeaturesOrBuilderList();
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder getFeaturesOrBuilder(
int index);
}
/**
* Protobuf type {@code waves.node.grpc.ActivationStatusResponse}
*/
public static final class ActivationStatusResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.ActivationStatusResponse)
ActivationStatusResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActivationStatusResponse.newBuilder() to construct.
private ActivationStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActivationStatusResponse() {
features_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActivationStatusResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActivationStatusResponse(
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: {
height_ = input.readInt32();
break;
}
case 16: {
votingInterval_ = input.readInt32();
break;
}
case 24: {
votingThreshold_ = input.readInt32();
break;
}
case 32: {
nextCheck_ = input.readInt32();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
features_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
features_.add(
input.readMessage(com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.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)) {
features_ = java.util.Collections.unmodifiableList(features_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private int height_;
/**
* int32 height = 1;
* @return The height.
*/
public int getHeight() {
return height_;
}
public static final int VOTING_INTERVAL_FIELD_NUMBER = 2;
private int votingInterval_;
/**
* int32 voting_interval = 2;
* @return The votingInterval.
*/
public int getVotingInterval() {
return votingInterval_;
}
public static final int VOTING_THRESHOLD_FIELD_NUMBER = 3;
private int votingThreshold_;
/**
* int32 voting_threshold = 3;
* @return The votingThreshold.
*/
public int getVotingThreshold() {
return votingThreshold_;
}
public static final int NEXT_CHECK_FIELD_NUMBER = 4;
private int nextCheck_;
/**
* int32 next_check = 4;
* @return The nextCheck.
*/
public int getNextCheck() {
return nextCheck_;
}
public static final int FEATURES_FIELD_NUMBER = 5;
private java.util.List features_;
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public java.util.List getFeaturesList() {
return features_;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public java.util.List extends com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder>
getFeaturesOrBuilderList() {
return features_;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public int getFeaturesCount() {
return features_.size();
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus getFeatures(int index) {
return features_.get(index);
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder getFeaturesOrBuilder(
int index) {
return features_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (height_ != 0) {
output.writeInt32(1, height_);
}
if (votingInterval_ != 0) {
output.writeInt32(2, votingInterval_);
}
if (votingThreshold_ != 0) {
output.writeInt32(3, votingThreshold_);
}
if (nextCheck_ != 0) {
output.writeInt32(4, nextCheck_);
}
for (int i = 0; i < features_.size(); i++) {
output.writeMessage(5, features_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, height_);
}
if (votingInterval_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, votingInterval_);
}
if (votingThreshold_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, votingThreshold_);
}
if (nextCheck_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, nextCheck_);
}
for (int i = 0; i < features_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, features_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse other = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse) obj;
if (getHeight()
!= other.getHeight()) return false;
if (getVotingInterval()
!= other.getVotingInterval()) return false;
if (getVotingThreshold()
!= other.getVotingThreshold()) return false;
if (getNextCheck()
!= other.getNextCheck()) return false;
if (!getFeaturesList()
.equals(other.getFeaturesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight();
hash = (37 * hash) + VOTING_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getVotingInterval();
hash = (37 * hash) + VOTING_THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + getVotingThreshold();
hash = (37 * hash) + NEXT_CHECK_FIELD_NUMBER;
hash = (53 * hash) + getNextCheck();
if (getFeaturesCount() > 0) {
hash = (37 * hash) + FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getFeaturesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code waves.node.grpc.ActivationStatusResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.ActivationStatusResponse)
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFeaturesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
height_ = 0;
votingInterval_ = 0;
votingThreshold_ = 0;
nextCheck_ = 0;
if (featuresBuilder_ == null) {
features_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
featuresBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ActivationStatusResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse build() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse buildPartial() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse result = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse(this);
int from_bitField0_ = bitField0_;
result.height_ = height_;
result.votingInterval_ = votingInterval_;
result.votingThreshold_ = votingThreshold_;
result.nextCheck_ = nextCheck_;
if (featuresBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
features_ = java.util.Collections.unmodifiableList(features_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.features_ = features_;
} else {
result.features_ = featuresBuilder_.build();
}
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.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse) {
return mergeFrom((com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse other) {
if (other == com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse.getDefaultInstance()) return this;
if (other.getHeight() != 0) {
setHeight(other.getHeight());
}
if (other.getVotingInterval() != 0) {
setVotingInterval(other.getVotingInterval());
}
if (other.getVotingThreshold() != 0) {
setVotingThreshold(other.getVotingThreshold());
}
if (other.getNextCheck() != 0) {
setNextCheck(other.getNextCheck());
}
if (featuresBuilder_ == null) {
if (!other.features_.isEmpty()) {
if (features_.isEmpty()) {
features_ = other.features_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFeaturesIsMutable();
features_.addAll(other.features_);
}
onChanged();
}
} else {
if (!other.features_.isEmpty()) {
if (featuresBuilder_.isEmpty()) {
featuresBuilder_.dispose();
featuresBuilder_ = null;
features_ = other.features_;
bitField0_ = (bitField0_ & ~0x00000001);
featuresBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFeaturesFieldBuilder() : null;
} else {
featuresBuilder_.addAllMessages(other.features_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int height_ ;
/**
* int32 height = 1;
* @return The height.
*/
public int getHeight() {
return height_;
}
/**
* int32 height = 1;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(int value) {
height_ = value;
onChanged();
return this;
}
/**
* int32 height = 1;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0;
onChanged();
return this;
}
private int votingInterval_ ;
/**
* int32 voting_interval = 2;
* @return The votingInterval.
*/
public int getVotingInterval() {
return votingInterval_;
}
/**
* int32 voting_interval = 2;
* @param value The votingInterval to set.
* @return This builder for chaining.
*/
public Builder setVotingInterval(int value) {
votingInterval_ = value;
onChanged();
return this;
}
/**
* int32 voting_interval = 2;
* @return This builder for chaining.
*/
public Builder clearVotingInterval() {
votingInterval_ = 0;
onChanged();
return this;
}
private int votingThreshold_ ;
/**
* int32 voting_threshold = 3;
* @return The votingThreshold.
*/
public int getVotingThreshold() {
return votingThreshold_;
}
/**
* int32 voting_threshold = 3;
* @param value The votingThreshold to set.
* @return This builder for chaining.
*/
public Builder setVotingThreshold(int value) {
votingThreshold_ = value;
onChanged();
return this;
}
/**
* int32 voting_threshold = 3;
* @return This builder for chaining.
*/
public Builder clearVotingThreshold() {
votingThreshold_ = 0;
onChanged();
return this;
}
private int nextCheck_ ;
/**
* int32 next_check = 4;
* @return The nextCheck.
*/
public int getNextCheck() {
return nextCheck_;
}
/**
* int32 next_check = 4;
* @param value The nextCheck to set.
* @return This builder for chaining.
*/
public Builder setNextCheck(int value) {
nextCheck_ = value;
onChanged();
return this;
}
/**
* int32 next_check = 4;
* @return This builder for chaining.
*/
public Builder clearNextCheck() {
nextCheck_ = 0;
onChanged();
return this;
}
private java.util.List features_ =
java.util.Collections.emptyList();
private void ensureFeaturesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
features_ = new java.util.ArrayList(features_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder> featuresBuilder_;
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public java.util.List getFeaturesList() {
if (featuresBuilder_ == null) {
return java.util.Collections.unmodifiableList(features_);
} else {
return featuresBuilder_.getMessageList();
}
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public int getFeaturesCount() {
if (featuresBuilder_ == null) {
return features_.size();
} else {
return featuresBuilder_.getCount();
}
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus getFeatures(int index) {
if (featuresBuilder_ == null) {
return features_.get(index);
} else {
return featuresBuilder_.getMessage(index);
}
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder setFeatures(
int index, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus value) {
if (featuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.set(index, value);
onChanged();
} else {
featuresBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder setFeatures(
int index, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder builderForValue) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.set(index, builderForValue.build());
onChanged();
} else {
featuresBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder addFeatures(com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus value) {
if (featuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.add(value);
onChanged();
} else {
featuresBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder addFeatures(
int index, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus value) {
if (featuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.add(index, value);
onChanged();
} else {
featuresBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder addFeatures(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder builderForValue) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.add(builderForValue.build());
onChanged();
} else {
featuresBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder addFeatures(
int index, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder builderForValue) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.add(index, builderForValue.build());
onChanged();
} else {
featuresBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder addAllFeatures(
java.lang.Iterable extends com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus> values) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, features_);
onChanged();
} else {
featuresBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder clearFeatures() {
if (featuresBuilder_ == null) {
features_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
featuresBuilder_.clear();
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public Builder removeFeatures(int index) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.remove(index);
onChanged();
} else {
featuresBuilder_.remove(index);
}
return this;
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder getFeaturesBuilder(
int index) {
return getFeaturesFieldBuilder().getBuilder(index);
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder getFeaturesOrBuilder(
int index) {
if (featuresBuilder_ == null) {
return features_.get(index); } else {
return featuresBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public java.util.List extends com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder>
getFeaturesOrBuilderList() {
if (featuresBuilder_ != null) {
return featuresBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(features_);
}
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder addFeaturesBuilder() {
return getFeaturesFieldBuilder().addBuilder(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.getDefaultInstance());
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder addFeaturesBuilder(
int index) {
return getFeaturesFieldBuilder().addBuilder(
index, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.getDefaultInstance());
}
/**
* repeated .waves.node.grpc.FeatureActivationStatus features = 5;
*/
public java.util.List
getFeaturesBuilderList() {
return getFeaturesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder>
getFeaturesFieldBuilder() {
if (featuresBuilder_ == null) {
featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder>(
features_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
features_ = null;
}
return featuresBuilder_;
}
@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:waves.node.grpc.ActivationStatusResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.ActivationStatusResponse)
private static final com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse();
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActivationStatusResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActivationStatusResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ActivationStatusResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeatureActivationStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.FeatureActivationStatus)
com.google.protobuf.MessageOrBuilder {
/**
* int32 id = 1;
* @return The id.
*/
int getId();
/**
* string description = 2;
* @return The description.
*/
java.lang.String getDescription();
/**
* string description = 2;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @return The enum numeric value on the wire for blockchainStatus.
*/
int getBlockchainStatusValue();
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @return The blockchainStatus.
*/
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus getBlockchainStatus();
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @return The enum numeric value on the wire for nodeStatus.
*/
int getNodeStatusValue();
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @return The nodeStatus.
*/
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus getNodeStatus();
/**
* int32 activation_height = 5;
* @return The activationHeight.
*/
int getActivationHeight();
/**
* int32 supporting_blocks = 6;
* @return The supportingBlocks.
*/
int getSupportingBlocks();
}
/**
* Protobuf type {@code waves.node.grpc.FeatureActivationStatus}
*/
public static final class FeatureActivationStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.FeatureActivationStatus)
FeatureActivationStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use FeatureActivationStatus.newBuilder() to construct.
private FeatureActivationStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FeatureActivationStatus() {
description_ = "";
blockchainStatus_ = 0;
nodeStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FeatureActivationStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FeatureActivationStatus(
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: {
id_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
blockchainStatus_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
nodeStatus_ = rawValue;
break;
}
case 40: {
activationHeight_ = input.readInt32();
break;
}
case 48: {
supportingBlocks_ = input.readInt32();
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.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_FeatureActivationStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_FeatureActivationStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder.class);
}
/**
* Protobuf enum {@code waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus}
*/
public enum BlockchainFeatureStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNDEFINED = 0;
*/
UNDEFINED(0),
/**
* APPROVED = 1;
*/
APPROVED(1),
/**
* ACTIVATED = 2;
*/
ACTIVATED(2),
UNRECOGNIZED(-1),
;
/**
* UNDEFINED = 0;
*/
public static final int UNDEFINED_VALUE = 0;
/**
* APPROVED = 1;
*/
public static final int APPROVED_VALUE = 1;
/**
* ACTIVATED = 2;
*/
public static final int ACTIVATED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BlockchainFeatureStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static BlockchainFeatureStatus forNumber(int value) {
switch (value) {
case 0: return UNDEFINED;
case 1: return APPROVED;
case 2: return ACTIVATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BlockchainFeatureStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BlockchainFeatureStatus findValueByNumber(int number) {
return BlockchainFeatureStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.getDescriptor().getEnumTypes().get(0);
}
private static final BlockchainFeatureStatus[] VALUES = values();
public static BlockchainFeatureStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BlockchainFeatureStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus)
}
/**
* Protobuf enum {@code waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus}
*/
public enum NodeFeatureStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_IMPLEMENTED = 0;
*/
NOT_IMPLEMENTED(0),
/**
* IMPLEMENTED = 1;
*/
IMPLEMENTED(1),
/**
* VOTED = 2;
*/
VOTED(2),
UNRECOGNIZED(-1),
;
/**
* NOT_IMPLEMENTED = 0;
*/
public static final int NOT_IMPLEMENTED_VALUE = 0;
/**
* IMPLEMENTED = 1;
*/
public static final int IMPLEMENTED_VALUE = 1;
/**
* VOTED = 2;
*/
public static final int VOTED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeFeatureStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static NodeFeatureStatus forNumber(int value) {
switch (value) {
case 0: return NOT_IMPLEMENTED;
case 1: return IMPLEMENTED;
case 2: return VOTED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NodeFeatureStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NodeFeatureStatus findValueByNumber(int number) {
return NodeFeatureStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.getDescriptor().getEnumTypes().get(1);
}
private static final NodeFeatureStatus[] VALUES = values();
public static NodeFeatureStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private NodeFeatureStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus)
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* int32 id = 1;
* @return The id.
*/
public int getId() {
return id_;
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
* string description = 2;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
* string description = 2;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BLOCKCHAIN_STATUS_FIELD_NUMBER = 3;
private int blockchainStatus_;
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @return The enum numeric value on the wire for blockchainStatus.
*/
public int getBlockchainStatusValue() {
return blockchainStatus_;
}
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @return The blockchainStatus.
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus getBlockchainStatus() {
@SuppressWarnings("deprecation")
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus result = com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus.valueOf(blockchainStatus_);
return result == null ? com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus.UNRECOGNIZED : result;
}
public static final int NODE_STATUS_FIELD_NUMBER = 4;
private int nodeStatus_;
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @return The enum numeric value on the wire for nodeStatus.
*/
public int getNodeStatusValue() {
return nodeStatus_;
}
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @return The nodeStatus.
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus getNodeStatus() {
@SuppressWarnings("deprecation")
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus result = com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus.valueOf(nodeStatus_);
return result == null ? com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus.UNRECOGNIZED : result;
}
public static final int ACTIVATION_HEIGHT_FIELD_NUMBER = 5;
private int activationHeight_;
/**
* int32 activation_height = 5;
* @return The activationHeight.
*/
public int getActivationHeight() {
return activationHeight_;
}
public static final int SUPPORTING_BLOCKS_FIELD_NUMBER = 6;
private int supportingBlocks_;
/**
* int32 supporting_blocks = 6;
* @return The supportingBlocks.
*/
public int getSupportingBlocks() {
return supportingBlocks_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != 0) {
output.writeInt32(1, id_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (blockchainStatus_ != com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus.UNDEFINED.getNumber()) {
output.writeEnum(3, blockchainStatus_);
}
if (nodeStatus_ != com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus.NOT_IMPLEMENTED.getNumber()) {
output.writeEnum(4, nodeStatus_);
}
if (activationHeight_ != 0) {
output.writeInt32(5, activationHeight_);
}
if (supportingBlocks_ != 0) {
output.writeInt32(6, supportingBlocks_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (blockchainStatus_ != com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus.UNDEFINED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, blockchainStatus_);
}
if (nodeStatus_ != com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus.NOT_IMPLEMENTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, nodeStatus_);
}
if (activationHeight_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, activationHeight_);
}
if (supportingBlocks_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, supportingBlocks_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus other = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus) obj;
if (getId()
!= other.getId()) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (blockchainStatus_ != other.blockchainStatus_) return false;
if (nodeStatus_ != other.nodeStatus_) return false;
if (getActivationHeight()
!= other.getActivationHeight()) return false;
if (getSupportingBlocks()
!= other.getSupportingBlocks()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + BLOCKCHAIN_STATUS_FIELD_NUMBER;
hash = (53 * hash) + blockchainStatus_;
hash = (37 * hash) + NODE_STATUS_FIELD_NUMBER;
hash = (53 * hash) + nodeStatus_;
hash = (37 * hash) + ACTIVATION_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getActivationHeight();
hash = (37 * hash) + SUPPORTING_BLOCKS_FIELD_NUMBER;
hash = (53 * hash) + getSupportingBlocks();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code waves.node.grpc.FeatureActivationStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.FeatureActivationStatus)
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_FeatureActivationStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_FeatureActivationStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
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();
id_ = 0;
description_ = "";
blockchainStatus_ = 0;
nodeStatus_ = 0;
activationHeight_ = 0;
supportingBlocks_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_FeatureActivationStatus_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus build() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus buildPartial() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus result = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus(this);
result.id_ = id_;
result.description_ = description_;
result.blockchainStatus_ = blockchainStatus_;
result.nodeStatus_ = nodeStatus_;
result.activationHeight_ = activationHeight_;
result.supportingBlocks_ = supportingBlocks_;
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.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus) {
return mergeFrom((com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus other) {
if (other == com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.blockchainStatus_ != 0) {
setBlockchainStatusValue(other.getBlockchainStatusValue());
}
if (other.nodeStatus_ != 0) {
setNodeStatusValue(other.getNodeStatusValue());
}
if (other.getActivationHeight() != 0) {
setActivationHeight(other.getActivationHeight());
}
if (other.getSupportingBlocks() != 0) {
setSupportingBlocks(other.getSupportingBlocks());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* int32 id = 1;
* @return The id.
*/
public int getId() {
return id_;
}
/**
* int32 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* int32 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 2;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 2;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 2;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private int blockchainStatus_ = 0;
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @return The enum numeric value on the wire for blockchainStatus.
*/
public int getBlockchainStatusValue() {
return blockchainStatus_;
}
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @param value The enum numeric value on the wire for blockchainStatus to set.
* @return This builder for chaining.
*/
public Builder setBlockchainStatusValue(int value) {
blockchainStatus_ = value;
onChanged();
return this;
}
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @return The blockchainStatus.
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus getBlockchainStatus() {
@SuppressWarnings("deprecation")
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus result = com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus.valueOf(blockchainStatus_);
return result == null ? com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus.UNRECOGNIZED : result;
}
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @param value The blockchainStatus to set.
* @return This builder for chaining.
*/
public Builder setBlockchainStatus(com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.BlockchainFeatureStatus value) {
if (value == null) {
throw new NullPointerException();
}
blockchainStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus blockchain_status = 3;
* @return This builder for chaining.
*/
public Builder clearBlockchainStatus() {
blockchainStatus_ = 0;
onChanged();
return this;
}
private int nodeStatus_ = 0;
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @return The enum numeric value on the wire for nodeStatus.
*/
public int getNodeStatusValue() {
return nodeStatus_;
}
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @param value The enum numeric value on the wire for nodeStatus to set.
* @return This builder for chaining.
*/
public Builder setNodeStatusValue(int value) {
nodeStatus_ = value;
onChanged();
return this;
}
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @return The nodeStatus.
*/
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus getNodeStatus() {
@SuppressWarnings("deprecation")
com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus result = com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus.valueOf(nodeStatus_);
return result == null ? com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus.UNRECOGNIZED : result;
}
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @param value The nodeStatus to set.
* @return This builder for chaining.
*/
public Builder setNodeStatus(com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus.NodeFeatureStatus value) {
if (value == null) {
throw new NullPointerException();
}
nodeStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus node_status = 4;
* @return This builder for chaining.
*/
public Builder clearNodeStatus() {
nodeStatus_ = 0;
onChanged();
return this;
}
private int activationHeight_ ;
/**
* int32 activation_height = 5;
* @return The activationHeight.
*/
public int getActivationHeight() {
return activationHeight_;
}
/**
* int32 activation_height = 5;
* @param value The activationHeight to set.
* @return This builder for chaining.
*/
public Builder setActivationHeight(int value) {
activationHeight_ = value;
onChanged();
return this;
}
/**
* int32 activation_height = 5;
* @return This builder for chaining.
*/
public Builder clearActivationHeight() {
activationHeight_ = 0;
onChanged();
return this;
}
private int supportingBlocks_ ;
/**
* int32 supporting_blocks = 6;
* @return The supportingBlocks.
*/
public int getSupportingBlocks() {
return supportingBlocks_;
}
/**
* int32 supporting_blocks = 6;
* @param value The supportingBlocks to set.
* @return This builder for chaining.
*/
public Builder setSupportingBlocks(int value) {
supportingBlocks_ = value;
onChanged();
return this;
}
/**
* int32 supporting_blocks = 6;
* @return This builder for chaining.
*/
public Builder clearSupportingBlocks() {
supportingBlocks_ = 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:waves.node.grpc.FeatureActivationStatus)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.FeatureActivationStatus)
private static final com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus();
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FeatureActivationStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FeatureActivationStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.FeatureActivationStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BaseTargetResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.BaseTargetResponse)
com.google.protobuf.MessageOrBuilder {
/**
* int64 base_target = 1;
* @return The baseTarget.
*/
long getBaseTarget();
}
/**
* Protobuf type {@code waves.node.grpc.BaseTargetResponse}
*/
public static final class BaseTargetResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.BaseTargetResponse)
BaseTargetResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BaseTargetResponse.newBuilder() to construct.
private BaseTargetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BaseTargetResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BaseTargetResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BaseTargetResponse(
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: {
baseTarget_ = input.readInt64();
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.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_BaseTargetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_BaseTargetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse.Builder.class);
}
public static final int BASE_TARGET_FIELD_NUMBER = 1;
private long baseTarget_;
/**
* int64 base_target = 1;
* @return The baseTarget.
*/
public long getBaseTarget() {
return baseTarget_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (baseTarget_ != 0L) {
output.writeInt64(1, baseTarget_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (baseTarget_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, baseTarget_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse other = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse) obj;
if (getBaseTarget()
!= other.getBaseTarget()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BASE_TARGET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBaseTarget());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code waves.node.grpc.BaseTargetResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.BaseTargetResponse)
com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_BaseTargetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_BaseTargetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
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();
baseTarget_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_BaseTargetResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse build() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse buildPartial() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse result = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse(this);
result.baseTarget_ = baseTarget_;
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.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse) {
return mergeFrom((com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse other) {
if (other == com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse.getDefaultInstance()) return this;
if (other.getBaseTarget() != 0L) {
setBaseTarget(other.getBaseTarget());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long baseTarget_ ;
/**
* int64 base_target = 1;
* @return The baseTarget.
*/
public long getBaseTarget() {
return baseTarget_;
}
/**
* int64 base_target = 1;
* @param value The baseTarget to set.
* @return This builder for chaining.
*/
public Builder setBaseTarget(long value) {
baseTarget_ = value;
onChanged();
return this;
}
/**
* int64 base_target = 1;
* @return This builder for chaining.
*/
public Builder clearBaseTarget() {
baseTarget_ = 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:waves.node.grpc.BaseTargetResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.BaseTargetResponse)
private static final com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse();
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BaseTargetResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BaseTargetResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.BaseTargetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScoreResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.ScoreResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* BigInt
*
*
* bytes score = 1;
* @return The score.
*/
com.google.protobuf.ByteString getScore();
}
/**
* Protobuf type {@code waves.node.grpc.ScoreResponse}
*/
public static final class ScoreResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.ScoreResponse)
ScoreResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScoreResponse.newBuilder() to construct.
private ScoreResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScoreResponse() {
score_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScoreResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScoreResponse(
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: {
score_ = 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.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ScoreResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ScoreResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse.Builder.class);
}
public static final int SCORE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString score_;
/**
*
* BigInt
*
*
* bytes score = 1;
* @return The score.
*/
public com.google.protobuf.ByteString getScore() {
return score_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!score_.isEmpty()) {
output.writeBytes(1, score_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!score_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, score_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse other = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse) obj;
if (!getScore()
.equals(other.getScore())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SCORE_FIELD_NUMBER;
hash = (53 * hash) + getScore().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code waves.node.grpc.ScoreResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.ScoreResponse)
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ScoreResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ScoreResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse.class, com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
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();
score_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.internal_static_waves_node_grpc_ScoreResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse build() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse buildPartial() {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse result = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse(this);
result.score_ = score_;
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.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse) {
return mergeFrom((com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse other) {
if (other == com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse.getDefaultInstance()) return this;
if (other.getScore() != com.google.protobuf.ByteString.EMPTY) {
setScore(other.getScore());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString score_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* BigInt
*
*
* bytes score = 1;
* @return The score.
*/
public com.google.protobuf.ByteString getScore() {
return score_;
}
/**
*
* BigInt
*
*
* bytes score = 1;
* @param value The score to set.
* @return This builder for chaining.
*/
public Builder setScore(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
score_ = value;
onChanged();
return this;
}
/**
*
* BigInt
*
*
* bytes score = 1;
* @return This builder for chaining.
*/
public Builder clearScore() {
score_ = getDefaultInstance().getScore();
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:waves.node.grpc.ScoreResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.ScoreResponse)
private static final com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse();
}
public static com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScoreResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScoreResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.BlockchainApiOuterClass.ScoreResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_ActivationStatusRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_ActivationStatusRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_ActivationStatusResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_ActivationStatusResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_FeatureActivationStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_FeatureActivationStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_BaseTargetResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_BaseTargetResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_ScoreResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_ScoreResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n$waves/node/grpc/blockchain_api.proto\022\017" +
"waves.node.grpc\032\033google/protobuf/empty.p" +
"roto\")\n\027ActivationStatusRequest\022\016\n\006heigh" +
"t\030\001 \001(\005\"\255\001\n\030ActivationStatusResponse\022\016\n\006" +
"height\030\001 \001(\005\022\027\n\017voting_interval\030\002 \001(\005\022\030\n" +
"\020voting_threshold\030\003 \001(\005\022\022\n\nnext_check\030\004 " +
"\001(\005\022:\n\010features\030\005 \003(\0132(.waves.node.grpc." +
"FeatureActivationStatus\"\253\003\n\027FeatureActiv" +
"ationStatus\022\n\n\002id\030\001 \001(\005\022\023\n\013description\030\002" +
" \001(\t\022[\n\021blockchain_status\030\003 \001(\[email protected]." +
"node.grpc.FeatureActivationStatus.Blockc" +
"hainFeatureStatus\022O\n\013node_status\030\004 \001(\0162:" +
".waves.node.grpc.FeatureActivationStatus" +
".NodeFeatureStatus\022\031\n\021activation_height\030" +
"\005 \001(\005\022\031\n\021supporting_blocks\030\006 \001(\005\"E\n\027Bloc" +
"kchainFeatureStatus\022\r\n\tUNDEFINED\020\000\022\014\n\010AP" +
"PROVED\020\001\022\r\n\tACTIVATED\020\002\"D\n\021NodeFeatureSt" +
"atus\022\023\n\017NOT_IMPLEMENTED\020\000\022\017\n\013IMPLEMENTED" +
"\020\001\022\t\n\005VOTED\020\002\")\n\022BaseTargetResponse\022\023\n\013b" +
"ase_target\030\001 \001(\003\"\036\n\rScoreResponse\022\r\n\005sco" +
"re\030\001 \001(\0142\227\002\n\rBlockchainApi\022j\n\023GetActivat" +
"ionStatus\022(.waves.node.grpc.ActivationSt" +
"atusRequest\032).waves.node.grpc.Activation" +
"StatusResponse\022L\n\rGetBaseTarget\022\026.google" +
".protobuf.Empty\032#.waves.node.grpc.BaseTa" +
"rgetResponse\022L\n\022GetCumulativeScore\022\026.goo" +
"gle.protobuf.Empty\032\036.waves.node.grpc.Sco" +
"reResponseBs\n\032com.wavesplatform.api.grpc" +
"ZCgithub.com/wavesplatform/gowaves/pkg/g" +
"rpc/generated/waves/node/grpc\252\002\017Waves.No" +
"de.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.EmptyProto.getDescriptor(),
});
internal_static_waves_node_grpc_ActivationStatusRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_waves_node_grpc_ActivationStatusRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_ActivationStatusRequest_descriptor,
new java.lang.String[] { "Height", });
internal_static_waves_node_grpc_ActivationStatusResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_waves_node_grpc_ActivationStatusResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_ActivationStatusResponse_descriptor,
new java.lang.String[] { "Height", "VotingInterval", "VotingThreshold", "NextCheck", "Features", });
internal_static_waves_node_grpc_FeatureActivationStatus_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_waves_node_grpc_FeatureActivationStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_FeatureActivationStatus_descriptor,
new java.lang.String[] { "Id", "Description", "BlockchainStatus", "NodeStatus", "ActivationHeight", "SupportingBlocks", });
internal_static_waves_node_grpc_BaseTargetResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_waves_node_grpc_BaseTargetResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_BaseTargetResponse_descriptor,
new java.lang.String[] { "BaseTarget", });
internal_static_waves_node_grpc_ScoreResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_waves_node_grpc_ScoreResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_ScoreResponse_descriptor,
new java.lang.String[] { "Score", });
com.google.protobuf.EmptyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}