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

com.hedera.hashgraph.sdk.proto.FeeSchedule Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: basic_types.proto

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * A list of resource prices fee for different transactions and queries and the time period at which
 * this fee schedule will expire. Nodes use the prices to determine the fees for all transactions
 * based on how much of those resources each transaction uses.
 * 
* * Protobuf type {@code proto.FeeSchedule} */ public final class FeeSchedule extends com.google.protobuf.GeneratedMessageLite< FeeSchedule, FeeSchedule.Builder> implements // @@protoc_insertion_point(message_implements:proto.FeeSchedule) FeeScheduleOrBuilder { private FeeSchedule() { transactionFeeSchedule_ = emptyProtobufList(); } public static final int TRANSACTIONFEESCHEDULE_FIELD_NUMBER = 1; private com.google.protobuf.Internal.ProtobufList transactionFeeSchedule_; /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ @java.lang.Override public java.util.List getTransactionFeeScheduleList() { return transactionFeeSchedule_; } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public java.util.List getTransactionFeeScheduleOrBuilderList() { return transactionFeeSchedule_; } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ @java.lang.Override public int getTransactionFeeScheduleCount() { return transactionFeeSchedule_.size(); } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule getTransactionFeeSchedule(int index) { return transactionFeeSchedule_.get(index); } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.TransactionFeeScheduleOrBuilder getTransactionFeeScheduleOrBuilder( int index) { return transactionFeeSchedule_.get(index); } private void ensureTransactionFeeScheduleIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = transactionFeeSchedule_; if (!tmp.isModifiable()) { transactionFeeSchedule_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ private void setTransactionFeeSchedule( int index, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule value) { value.getClass(); ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.set(index, value); } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ private void addTransactionFeeSchedule(com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule value) { value.getClass(); ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.add(value); } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ private void addTransactionFeeSchedule( int index, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule value) { value.getClass(); ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.add(index, value); } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ private void addAllTransactionFeeSchedule( java.lang.Iterable values) { ensureTransactionFeeScheduleIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, transactionFeeSchedule_); } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ private void clearTransactionFeeSchedule() { transactionFeeSchedule_ = emptyProtobufList(); } /** *
   **
   * List of price coefficients for network resources
   * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ private void removeTransactionFeeSchedule(int index) { ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.remove(index); } public static final int EXPIRYTIME_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.TimestampSeconds expiryTime_; /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; */ @java.lang.Override public boolean hasExpiryTime() { return expiryTime_ != null; } /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpiryTime() { return expiryTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expiryTime_; } /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; */ private void setExpiryTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { value.getClass(); expiryTime_ = value; } /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeExpiryTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { value.getClass(); if (expiryTime_ != null && expiryTime_ != com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance()) { expiryTime_ = com.hedera.hashgraph.sdk.proto.TimestampSeconds.newBuilder(expiryTime_).mergeFrom(value).buildPartial(); } else { expiryTime_ = value; } } /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; */ private void clearExpiryTime() { expiryTime_ = null; } public static com.hedera.hashgraph.sdk.proto.FeeSchedule 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.FeeSchedule 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.FeeSchedule 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.FeeSchedule 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.FeeSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule 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.FeeSchedule 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.FeeSchedule 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.FeeSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule 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.FeeSchedule 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.FeeSchedule 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.FeeSchedule prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * A list of resource prices fee for different transactions and queries and the time period at which
   * this fee schedule will expire. Nodes use the prices to determine the fees for all transactions
   * based on how much of those resources each transaction uses.
   * 
* * Protobuf type {@code proto.FeeSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.FeeSchedule, Builder> implements // @@protoc_insertion_point(builder_implements:proto.FeeSchedule) com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.FeeSchedule.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ @java.lang.Override public java.util.List getTransactionFeeScheduleList() { return java.util.Collections.unmodifiableList( instance.getTransactionFeeScheduleList()); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ @java.lang.Override public int getTransactionFeeScheduleCount() { return instance.getTransactionFeeScheduleCount(); }/** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule getTransactionFeeSchedule(int index) { return instance.getTransactionFeeSchedule(index); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder setTransactionFeeSchedule( int index, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule value) { copyOnWrite(); instance.setTransactionFeeSchedule(index, value); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder setTransactionFeeSchedule( int index, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder builderForValue) { copyOnWrite(); instance.setTransactionFeeSchedule(index, builderForValue.build()); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder addTransactionFeeSchedule(com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule value) { copyOnWrite(); instance.addTransactionFeeSchedule(value); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder addTransactionFeeSchedule( int index, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule value) { copyOnWrite(); instance.addTransactionFeeSchedule(index, value); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder addTransactionFeeSchedule( com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder builderForValue) { copyOnWrite(); instance.addTransactionFeeSchedule(builderForValue.build()); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder addTransactionFeeSchedule( int index, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder builderForValue) { copyOnWrite(); instance.addTransactionFeeSchedule(index, builderForValue.build()); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder addAllTransactionFeeSchedule( java.lang.Iterable values) { copyOnWrite(); instance.addAllTransactionFeeSchedule(values); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder clearTransactionFeeSchedule() { copyOnWrite(); instance.clearTransactionFeeSchedule(); return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder removeTransactionFeeSchedule(int index) { copyOnWrite(); instance.removeTransactionFeeSchedule(index); return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ @java.lang.Override public boolean hasExpiryTime() { return instance.hasExpiryTime(); } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpiryTime() { return instance.getExpiryTime(); } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder setExpiryTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { copyOnWrite(); instance.setExpiryTime(value); return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder setExpiryTime( com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder builderForValue) { copyOnWrite(); instance.setExpiryTime(builderForValue.build()); return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder mergeExpiryTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { copyOnWrite(); instance.mergeExpiryTime(value); return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder clearExpiryTime() { copyOnWrite(); instance.clearExpiryTime(); return this; } // @@protoc_insertion_point(builder_scope:proto.FeeSchedule) } @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.FeeSchedule(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "transactionFeeSchedule_", com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.class, "expiryTime_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u001b\u0002\t" + ""; 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.FeeSchedule.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.FeeSchedule) private static final com.hedera.hashgraph.sdk.proto.FeeSchedule DEFAULT_INSTANCE; static { FeeSchedule defaultInstance = new FeeSchedule(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( FeeSchedule.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy