com.hedera.hashgraph.sdk.proto.FeeComponents Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
// Protobuf Java Version: 3.25.4
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* A set of prices the nodes use in determining transaction and query fees, and constants involved
* in fee calculations. Nodes multiply the amount of resources consumed by a transaction or query
* by the corresponding price to calculate the appropriate fee. Units are one-thousandth of a
* tinyCent.
*
*
* Protobuf type {@code proto.FeeComponents}
*/
public final class FeeComponents extends
com.google.protobuf.GeneratedMessageLite<
FeeComponents, FeeComponents.Builder> implements
// @@protoc_insertion_point(message_implements:proto.FeeComponents)
FeeComponentsOrBuilder {
private FeeComponents() {
}
public static final int MIN_FIELD_NUMBER = 1;
private long min_;
/**
*
**
* A minimum, the calculated fee must be greater than this value
*
*
* int64 min = 1;
* @return The min.
*/
@java.lang.Override
public long getMin() {
return min_;
}
/**
*
**
* A minimum, the calculated fee must be greater than this value
*
*
* int64 min = 1;
* @param value The min to set.
*/
private void setMin(long value) {
min_ = value;
}
/**
*
**
* A minimum, the calculated fee must be greater than this value
*
*
* int64 min = 1;
*/
private void clearMin() {
min_ = 0L;
}
public static final int MAX_FIELD_NUMBER = 2;
private long max_;
/**
*
**
* A maximum, the calculated fee must be less than this value
*
*
* int64 max = 2;
* @return The max.
*/
@java.lang.Override
public long getMax() {
return max_;
}
/**
*
**
* A maximum, the calculated fee must be less than this value
*
*
* int64 max = 2;
* @param value The max to set.
*/
private void setMax(long value) {
max_ = value;
}
/**
*
**
* A maximum, the calculated fee must be less than this value
*
*
* int64 max = 2;
*/
private void clearMax() {
max_ = 0L;
}
public static final int CONSTANT_FIELD_NUMBER = 3;
private long constant_;
/**
*
**
* A constant contribution to the fee
*
*
* int64 constant = 3;
* @return The constant.
*/
@java.lang.Override
public long getConstant() {
return constant_;
}
/**
*
**
* A constant contribution to the fee
*
*
* int64 constant = 3;
* @param value The constant to set.
*/
private void setConstant(long value) {
constant_ = value;
}
/**
*
**
* A constant contribution to the fee
*
*
* int64 constant = 3;
*/
private void clearConstant() {
constant_ = 0L;
}
public static final int BPT_FIELD_NUMBER = 4;
private long bpt_;
/**
*
**
* The price of bandwidth consumed by a transaction, measured in bytes
*
*
* int64 bpt = 4;
* @return The bpt.
*/
@java.lang.Override
public long getBpt() {
return bpt_;
}
/**
*
**
* The price of bandwidth consumed by a transaction, measured in bytes
*
*
* int64 bpt = 4;
* @param value The bpt to set.
*/
private void setBpt(long value) {
bpt_ = value;
}
/**
*
**
* The price of bandwidth consumed by a transaction, measured in bytes
*
*
* int64 bpt = 4;
*/
private void clearBpt() {
bpt_ = 0L;
}
public static final int VPT_FIELD_NUMBER = 5;
private long vpt_;
/**
*
**
* The price per signature verification for a transaction
*
*
* int64 vpt = 5;
* @return The vpt.
*/
@java.lang.Override
public long getVpt() {
return vpt_;
}
/**
*
**
* The price per signature verification for a transaction
*
*
* int64 vpt = 5;
* @param value The vpt to set.
*/
private void setVpt(long value) {
vpt_ = value;
}
/**
*
**
* The price per signature verification for a transaction
*
*
* int64 vpt = 5;
*/
private void clearVpt() {
vpt_ = 0L;
}
public static final int RBH_FIELD_NUMBER = 6;
private long rbh_;
/**
*
**
* The price of RAM consumed by a transaction, measured in byte-hours
*
*
* int64 rbh = 6;
* @return The rbh.
*/
@java.lang.Override
public long getRbh() {
return rbh_;
}
/**
*
**
* The price of RAM consumed by a transaction, measured in byte-hours
*
*
* int64 rbh = 6;
* @param value The rbh to set.
*/
private void setRbh(long value) {
rbh_ = value;
}
/**
*
**
* The price of RAM consumed by a transaction, measured in byte-hours
*
*
* int64 rbh = 6;
*/
private void clearRbh() {
rbh_ = 0L;
}
public static final int SBH_FIELD_NUMBER = 7;
private long sbh_;
/**
*
**
* The price of storage consumed by a transaction, measured in byte-hours
*
*
* int64 sbh = 7;
* @return The sbh.
*/
@java.lang.Override
public long getSbh() {
return sbh_;
}
/**
*
**
* The price of storage consumed by a transaction, measured in byte-hours
*
*
* int64 sbh = 7;
* @param value The sbh to set.
*/
private void setSbh(long value) {
sbh_ = value;
}
/**
*
**
* The price of storage consumed by a transaction, measured in byte-hours
*
*
* int64 sbh = 7;
*/
private void clearSbh() {
sbh_ = 0L;
}
public static final int GAS_FIELD_NUMBER = 8;
private long gas_;
/**
*
**
* The price of computation for a smart contract transaction, measured in gas
*
*
* int64 gas = 8;
* @return The gas.
*/
@java.lang.Override
public long getGas() {
return gas_;
}
/**
*
**
* The price of computation for a smart contract transaction, measured in gas
*
*
* int64 gas = 8;
* @param value The gas to set.
*/
private void setGas(long value) {
gas_ = value;
}
/**
*
**
* The price of computation for a smart contract transaction, measured in gas
*
*
* int64 gas = 8;
*/
private void clearGas() {
gas_ = 0L;
}
public static final int TV_FIELD_NUMBER = 9;
private long tv_;
/**
*
**
* The price per hbar transferred for a transfer
*
*
* int64 tv = 9;
* @return The tv.
*/
@java.lang.Override
public long getTv() {
return tv_;
}
/**
*
**
* The price per hbar transferred for a transfer
*
*
* int64 tv = 9;
* @param value The tv to set.
*/
private void setTv(long value) {
tv_ = value;
}
/**
*
**
* The price per hbar transferred for a transfer
*
*
* int64 tv = 9;
*/
private void clearTv() {
tv_ = 0L;
}
public static final int BPR_FIELD_NUMBER = 10;
private long bpr_;
/**
*
**
* The price of bandwidth for data retrieved from memory for a response, measured in bytes
*
*
* int64 bpr = 10;
* @return The bpr.
*/
@java.lang.Override
public long getBpr() {
return bpr_;
}
/**
*
**
* The price of bandwidth for data retrieved from memory for a response, measured in bytes
*
*
* int64 bpr = 10;
* @param value The bpr to set.
*/
private void setBpr(long value) {
bpr_ = value;
}
/**
*
**
* The price of bandwidth for data retrieved from memory for a response, measured in bytes
*
*
* int64 bpr = 10;
*/
private void clearBpr() {
bpr_ = 0L;
}
public static final int SBPR_FIELD_NUMBER = 11;
private long sbpr_;
/**
*
**
* The price of bandwidth for data retrieved from disk for a response, measured in bytes
*
*
* int64 sbpr = 11;
* @return The sbpr.
*/
@java.lang.Override
public long getSbpr() {
return sbpr_;
}
/**
*
**
* The price of bandwidth for data retrieved from disk for a response, measured in bytes
*
*
* int64 sbpr = 11;
* @param value The sbpr to set.
*/
private void setSbpr(long value) {
sbpr_ = value;
}
/**
*
**
* The price of bandwidth for data retrieved from disk for a response, measured in bytes
*
*
* int64 sbpr = 11;
*/
private void clearSbpr() {
sbpr_ = 0L;
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.FeeComponents prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* A set of prices the nodes use in determining transaction and query fees, and constants involved
* in fee calculations. Nodes multiply the amount of resources consumed by a transaction or query
* by the corresponding price to calculate the appropriate fee. Units are one-thousandth of a
* tinyCent.
*
*
* Protobuf type {@code proto.FeeComponents}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.FeeComponents, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.FeeComponents)
com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.FeeComponents.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* A minimum, the calculated fee must be greater than this value
*
*
* int64 min = 1;
* @return The min.
*/
@java.lang.Override
public long getMin() {
return instance.getMin();
}
/**
*
**
* A minimum, the calculated fee must be greater than this value
*
*
* int64 min = 1;
* @param value The min to set.
* @return This builder for chaining.
*/
public Builder setMin(long value) {
copyOnWrite();
instance.setMin(value);
return this;
}
/**
*
**
* A minimum, the calculated fee must be greater than this value
*
*
* int64 min = 1;
* @return This builder for chaining.
*/
public Builder clearMin() {
copyOnWrite();
instance.clearMin();
return this;
}
/**
*
**
* A maximum, the calculated fee must be less than this value
*
*
* int64 max = 2;
* @return The max.
*/
@java.lang.Override
public long getMax() {
return instance.getMax();
}
/**
*
**
* A maximum, the calculated fee must be less than this value
*
*
* int64 max = 2;
* @param value The max to set.
* @return This builder for chaining.
*/
public Builder setMax(long value) {
copyOnWrite();
instance.setMax(value);
return this;
}
/**
*
**
* A maximum, the calculated fee must be less than this value
*
*
* int64 max = 2;
* @return This builder for chaining.
*/
public Builder clearMax() {
copyOnWrite();
instance.clearMax();
return this;
}
/**
*
**
* A constant contribution to the fee
*
*
* int64 constant = 3;
* @return The constant.
*/
@java.lang.Override
public long getConstant() {
return instance.getConstant();
}
/**
*
**
* A constant contribution to the fee
*
*
* int64 constant = 3;
* @param value The constant to set.
* @return This builder for chaining.
*/
public Builder setConstant(long value) {
copyOnWrite();
instance.setConstant(value);
return this;
}
/**
*
**
* A constant contribution to the fee
*
*
* int64 constant = 3;
* @return This builder for chaining.
*/
public Builder clearConstant() {
copyOnWrite();
instance.clearConstant();
return this;
}
/**
*
**
* The price of bandwidth consumed by a transaction, measured in bytes
*
*
* int64 bpt = 4;
* @return The bpt.
*/
@java.lang.Override
public long getBpt() {
return instance.getBpt();
}
/**
*
**
* The price of bandwidth consumed by a transaction, measured in bytes
*
*
* int64 bpt = 4;
* @param value The bpt to set.
* @return This builder for chaining.
*/
public Builder setBpt(long value) {
copyOnWrite();
instance.setBpt(value);
return this;
}
/**
*
**
* The price of bandwidth consumed by a transaction, measured in bytes
*
*
* int64 bpt = 4;
* @return This builder for chaining.
*/
public Builder clearBpt() {
copyOnWrite();
instance.clearBpt();
return this;
}
/**
*
**
* The price per signature verification for a transaction
*
*
* int64 vpt = 5;
* @return The vpt.
*/
@java.lang.Override
public long getVpt() {
return instance.getVpt();
}
/**
*
**
* The price per signature verification for a transaction
*
*
* int64 vpt = 5;
* @param value The vpt to set.
* @return This builder for chaining.
*/
public Builder setVpt(long value) {
copyOnWrite();
instance.setVpt(value);
return this;
}
/**
*
**
* The price per signature verification for a transaction
*
*
* int64 vpt = 5;
* @return This builder for chaining.
*/
public Builder clearVpt() {
copyOnWrite();
instance.clearVpt();
return this;
}
/**
*
**
* The price of RAM consumed by a transaction, measured in byte-hours
*
*
* int64 rbh = 6;
* @return The rbh.
*/
@java.lang.Override
public long getRbh() {
return instance.getRbh();
}
/**
*
**
* The price of RAM consumed by a transaction, measured in byte-hours
*
*
* int64 rbh = 6;
* @param value The rbh to set.
* @return This builder for chaining.
*/
public Builder setRbh(long value) {
copyOnWrite();
instance.setRbh(value);
return this;
}
/**
*
**
* The price of RAM consumed by a transaction, measured in byte-hours
*
*
* int64 rbh = 6;
* @return This builder for chaining.
*/
public Builder clearRbh() {
copyOnWrite();
instance.clearRbh();
return this;
}
/**
*
**
* The price of storage consumed by a transaction, measured in byte-hours
*
*
* int64 sbh = 7;
* @return The sbh.
*/
@java.lang.Override
public long getSbh() {
return instance.getSbh();
}
/**
*
**
* The price of storage consumed by a transaction, measured in byte-hours
*
*
* int64 sbh = 7;
* @param value The sbh to set.
* @return This builder for chaining.
*/
public Builder setSbh(long value) {
copyOnWrite();
instance.setSbh(value);
return this;
}
/**
*
**
* The price of storage consumed by a transaction, measured in byte-hours
*
*
* int64 sbh = 7;
* @return This builder for chaining.
*/
public Builder clearSbh() {
copyOnWrite();
instance.clearSbh();
return this;
}
/**
*
**
* The price of computation for a smart contract transaction, measured in gas
*
*
* int64 gas = 8;
* @return The gas.
*/
@java.lang.Override
public long getGas() {
return instance.getGas();
}
/**
*
**
* The price of computation for a smart contract transaction, measured in gas
*
*
* int64 gas = 8;
* @param value The gas to set.
* @return This builder for chaining.
*/
public Builder setGas(long value) {
copyOnWrite();
instance.setGas(value);
return this;
}
/**
*
**
* The price of computation for a smart contract transaction, measured in gas
*
*
* int64 gas = 8;
* @return This builder for chaining.
*/
public Builder clearGas() {
copyOnWrite();
instance.clearGas();
return this;
}
/**
*
**
* The price per hbar transferred for a transfer
*
*
* int64 tv = 9;
* @return The tv.
*/
@java.lang.Override
public long getTv() {
return instance.getTv();
}
/**
*
**
* The price per hbar transferred for a transfer
*
*
* int64 tv = 9;
* @param value The tv to set.
* @return This builder for chaining.
*/
public Builder setTv(long value) {
copyOnWrite();
instance.setTv(value);
return this;
}
/**
*
**
* The price per hbar transferred for a transfer
*
*
* int64 tv = 9;
* @return This builder for chaining.
*/
public Builder clearTv() {
copyOnWrite();
instance.clearTv();
return this;
}
/**
*
**
* The price of bandwidth for data retrieved from memory for a response, measured in bytes
*
*
* int64 bpr = 10;
* @return The bpr.
*/
@java.lang.Override
public long getBpr() {
return instance.getBpr();
}
/**
*
**
* The price of bandwidth for data retrieved from memory for a response, measured in bytes
*
*
* int64 bpr = 10;
* @param value The bpr to set.
* @return This builder for chaining.
*/
public Builder setBpr(long value) {
copyOnWrite();
instance.setBpr(value);
return this;
}
/**
*
**
* The price of bandwidth for data retrieved from memory for a response, measured in bytes
*
*
* int64 bpr = 10;
* @return This builder for chaining.
*/
public Builder clearBpr() {
copyOnWrite();
instance.clearBpr();
return this;
}
/**
*
**
* The price of bandwidth for data retrieved from disk for a response, measured in bytes
*
*
* int64 sbpr = 11;
* @return The sbpr.
*/
@java.lang.Override
public long getSbpr() {
return instance.getSbpr();
}
/**
*
**
* The price of bandwidth for data retrieved from disk for a response, measured in bytes
*
*
* int64 sbpr = 11;
* @param value The sbpr to set.
* @return This builder for chaining.
*/
public Builder setSbpr(long value) {
copyOnWrite();
instance.setSbpr(value);
return this;
}
/**
*
**
* The price of bandwidth for data retrieved from disk for a response, measured in bytes
*
*
* int64 sbpr = 11;
* @return This builder for chaining.
*/
public Builder clearSbpr() {
copyOnWrite();
instance.clearSbpr();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.FeeComponents)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.FeeComponents();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"min_",
"max_",
"constant_",
"bpt_",
"vpt_",
"rbh_",
"sbh_",
"gas_",
"tv_",
"bpr_",
"sbpr_",
};
java.lang.String info =
"\u0000\u000b\u0000\u0000\u0001\u000b\u000b\u0000\u0000\u0000\u0001\u0002\u0002\u0002" +
"\u0003\u0002\u0004\u0002\u0005\u0002\u0006\u0002\u0007\u0002\b\u0002\t\u0002\n\u0002" +
"\u000b\u0002";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.FeeComponents.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.FeeComponents)
private static final com.hedera.hashgraph.sdk.proto.FeeComponents DEFAULT_INSTANCE;
static {
FeeComponents defaultInstance = new FeeComponents();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
FeeComponents.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.FeeComponents getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}