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

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.3
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.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeComponents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeComponents_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.FeeComponents.class, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder.class); } public static final int MIN_FIELD_NUMBER = 1; private long min_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_); } getUnknownFields().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 += getUnknownFields().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.hedera.hashgraph.sdk.proto.FeeComponents)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.FeeComponents other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FeeComponents parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FeeComponents parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeComponents parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeComponents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeComponents_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.FeeComponents.class, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.FeeComponents.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeComponents_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeComponents getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeComponents build() { com.hedera.hashgraph.sdk.proto.FeeComponents result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeComponents buildPartial() { com.hedera.hashgraph.sdk.proto.FeeComponents result = new com.hedera.hashgraph.sdk.proto.FeeComponents(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.FeeComponents result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.min_ = min_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.max_ = max_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.constant_ = constant_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bpt_ = bpt_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.vpt_ = vpt_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.rbh_ = rbh_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.sbh_ = sbh_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.gas_ = gas_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.tv_ = tv_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.bpr_ = bpr_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.sbpr_ = sbpr_; } } @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.hedera.hashgraph.sdk.proto.FeeComponents) { return mergeFrom((com.hedera.hashgraph.sdk.proto.FeeComponents)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FeeComponents other) { if (other == com.hedera.hashgraph.sdk.proto.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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { min_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { max_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { constant_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { bpt_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { vpt_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { rbh_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { sbh_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { gas_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { tv_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { bpr_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { sbpr_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; 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() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * A constant contribution to the fee
     * 
* * int64 constant = 3; * @return This builder for chaining. */ public Builder clearConstant() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; 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() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The price per signature verification for a transaction
     * 
* * int64 vpt = 5; * @return This builder for chaining. */ public Builder clearVpt() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; 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() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; 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() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; 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() { bitField0_ = (bitField0_ & ~0x00000080); 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * The price per hbar transferred for a transfer
     * 
* * int64 tv = 9; * @return This builder for chaining. */ public Builder clearTv() { bitField0_ = (bitField0_ & ~0x00000100); 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; bitField0_ |= 0x00000200; 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() { bitField0_ = (bitField0_ & ~0x00000200); 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; bitField0_ |= 0x00000400; 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() { bitField0_ = (bitField0_ & ~0x00000400); 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.hedera.hashgraph.sdk.proto.FeeComponents DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FeeComponents(); } public static com.hedera.hashgraph.sdk.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.hedera.hashgraph.sdk.proto.FeeComponents getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy