All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hederahashgraph.api.proto.java.FeeComponents Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: basic_types.proto

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FeeComponents) FeeComponentsOrBuilder { private static final long serialVersionUID = 0L; // Use FeeComponents.newBuilder() to construct. private FeeComponents(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FeeComponents() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FeeComponents(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FeeComponents( 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: { min_ = input.readInt64(); break; } case 16: { max_ = input.readInt64(); break; } case 24: { constant_ = input.readInt64(); break; } case 32: { bpt_ = input.readInt64(); break; } case 40: { vpt_ = input.readInt64(); break; } case 48: { rbh_ = input.readInt64(); break; } case 56: { sbh_ = input.readInt64(); break; } case 64: { gas_ = input.readInt64(); break; } case 72: { tv_ = input.readInt64(); break; } case 80: { bpr_ = input.readInt64(); break; } case 88: { sbpr_ = 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.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FeeComponents.class, com.hederahashgraph.api.proto.java.FeeComponents.Builder.class); } 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_; } 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_; } 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_; } 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_; } 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_; } 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_; } 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_; } 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_; } 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_; } 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_; } 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_; } 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 (min_ != 0L) { output.writeInt64(1, min_); } if (max_ != 0L) { output.writeInt64(2, max_); } if (constant_ != 0L) { output.writeInt64(3, constant_); } if (bpt_ != 0L) { output.writeInt64(4, bpt_); } if (vpt_ != 0L) { output.writeInt64(5, vpt_); } if (rbh_ != 0L) { output.writeInt64(6, rbh_); } if (sbh_ != 0L) { output.writeInt64(7, sbh_); } if (gas_ != 0L) { output.writeInt64(8, gas_); } if (tv_ != 0L) { output.writeInt64(9, tv_); } if (bpr_ != 0L) { output.writeInt64(10, bpr_); } if (sbpr_ != 0L) { output.writeInt64(11, sbpr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (min_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, min_); } if (max_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, max_); } if (constant_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, constant_); } if (bpt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, bpt_); } if (vpt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, vpt_); } if (rbh_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, rbh_); } if (sbh_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, sbh_); } if (gas_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, gas_); } if (tv_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, tv_); } if (bpr_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, bpr_); } if (sbpr_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, sbpr_); } 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.hederahashgraph.api.proto.java.FeeComponents)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.FeeComponents other = (com.hederahashgraph.api.proto.java.FeeComponents) obj; if (getMin() != other.getMin()) return false; if (getMax() != other.getMax()) return false; if (getConstant() != other.getConstant()) return false; if (getBpt() != other.getBpt()) return false; if (getVpt() != other.getVpt()) return false; if (getRbh() != other.getRbh()) return false; if (getSbh() != other.getSbh()) return false; if (getGas() != other.getGas()) return false; if (getTv() != other.getTv()) return false; if (getBpr() != other.getBpr()) return false; if (getSbpr() != other.getSbpr()) 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) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMin()); hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMax()); hash = (37 * hash) + CONSTANT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConstant()); hash = (37 * hash) + BPT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBpt()); hash = (37 * hash) + VPT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVpt()); hash = (37 * hash) + RBH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRbh()); hash = (37 * hash) + SBH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSbh()); hash = (37 * hash) + GAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGas()); hash = (37 * hash) + TV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTv()); hash = (37 * hash) + BPR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBpr()); hash = (37 * hash) + SBPR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSbpr()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FeeComponents 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.hederahashgraph.api.proto.java.FeeComponents parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FeeComponents 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.hederahashgraph.api.proto.java.FeeComponents parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FeeComponents 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.hederahashgraph.api.proto.java.FeeComponents 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; } /** *
   **
   * 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.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FeeComponents) com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FeeComponents.class, com.hederahashgraph.api.proto.java.FeeComponents.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.FeeComponents.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(); min_ = 0L; max_ = 0L; constant_ = 0L; bpt_ = 0L; vpt_ = 0L; rbh_ = 0L; sbh_ = 0L; gas_ = 0L; tv_ = 0L; bpr_ = 0L; sbpr_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.FeeComponents getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.FeeComponents build() { com.hederahashgraph.api.proto.java.FeeComponents result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.FeeComponents buildPartial() { com.hederahashgraph.api.proto.java.FeeComponents result = new com.hederahashgraph.api.proto.java.FeeComponents(this); result.min_ = min_; result.max_ = max_; result.constant_ = constant_; result.bpt_ = bpt_; result.vpt_ = vpt_; result.rbh_ = rbh_; result.sbh_ = sbh_; result.gas_ = gas_; result.tv_ = tv_; result.bpr_ = bpr_; result.sbpr_ = sbpr_; 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.hederahashgraph.api.proto.java.FeeComponents) { return mergeFrom((com.hederahashgraph.api.proto.java.FeeComponents)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.FeeComponents other) { if (other == com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance()) return this; if (other.getMin() != 0L) { setMin(other.getMin()); } if (other.getMax() != 0L) { setMax(other.getMax()); } if (other.getConstant() != 0L) { setConstant(other.getConstant()); } if (other.getBpt() != 0L) { setBpt(other.getBpt()); } if (other.getVpt() != 0L) { setVpt(other.getVpt()); } if (other.getRbh() != 0L) { setRbh(other.getRbh()); } if (other.getSbh() != 0L) { setSbh(other.getSbh()); } if (other.getGas() != 0L) { setGas(other.getGas()); } if (other.getTv() != 0L) { setTv(other.getTv()); } if (other.getBpr() != 0L) { setBpr(other.getBpr()); } if (other.getSbpr() != 0L) { setSbpr(other.getSbpr()); } 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.hederahashgraph.api.proto.java.FeeComponents parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.FeeComponents) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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. * @return This builder for chaining. */ public Builder setMin(long value) { min_ = value; onChanged(); return this; } /** *
     **
     * A minimum, the calculated fee must be greater than this value
     * 
* * int64 min = 1; * @return This builder for chaining. */ public Builder clearMin() { min_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setMax(long value) { max_ = value; onChanged(); return this; } /** *
     **
     * A maximum, the calculated fee must be less than this value
     * 
* * int64 max = 2; * @return This builder for chaining. */ public Builder clearMax() { max_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setConstant(long value) { constant_ = value; onChanged(); return this; } /** *
     **
     * A constant contribution to the fee
     * 
* * int64 constant = 3; * @return This builder for chaining. */ public Builder clearConstant() { constant_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setBpt(long value) { bpt_ = value; onChanged(); return this; } /** *
     **
     * The price of bandwidth consumed by a transaction, measured in bytes
     * 
* * int64 bpt = 4; * @return This builder for chaining. */ public Builder clearBpt() { bpt_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setVpt(long value) { vpt_ = value; onChanged(); return this; } /** *
     **
     * The price per signature verification for a transaction
     * 
* * int64 vpt = 5; * @return This builder for chaining. */ public Builder clearVpt() { vpt_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setRbh(long value) { rbh_ = value; onChanged(); 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() { rbh_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setSbh(long value) { sbh_ = value; onChanged(); 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() { sbh_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setGas(long value) { gas_ = value; onChanged(); 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() { gas_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setTv(long value) { tv_ = value; onChanged(); return this; } /** *
     **
     * The price per hbar transferred for a transfer
     * 
* * int64 tv = 9; * @return This builder for chaining. */ public Builder clearTv() { tv_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setBpr(long value) { bpr_ = value; onChanged(); 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() { bpr_ = 0L; onChanged(); return this; } 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. * @return This builder for chaining. */ public Builder setSbpr(long value) { sbpr_ = value; onChanged(); 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() { sbpr_ = 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:proto.FeeComponents) } // @@protoc_insertion_point(class_scope:proto.FeeComponents) private static final com.hederahashgraph.api.proto.java.FeeComponents DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FeeComponents(); } public static com.hederahashgraph.api.proto.java.FeeComponents getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FeeComponents parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FeeComponents(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.hederahashgraph.api.proto.java.FeeComponents getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy