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

// Protobuf Java Version: 3.25.3
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.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FeeSchedule) FeeScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use FeeSchedule.newBuilder() to construct. private FeeSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FeeSchedule() { transactionFeeSchedule_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FeeSchedule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.FeeSchedule.class, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder.class); } private int bitField0_; public static final int TRANSACTIONFEESCHEDULE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List 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; */ @java.lang.Override 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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionFeeScheduleOrBuilder getTransactionFeeScheduleOrBuilder( int index) { return transactionFeeSchedule_.get(index); } public static final int EXPIRYTIME_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.TimestampSeconds expiryTime_; /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; * @return Whether the expiryTime field is set. */ @java.lang.Override public boolean hasExpiryTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; * @return The expiryTime. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder getExpiryTimeOrBuilder() { return expiryTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expiryTime_; } 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 { for (int i = 0; i < transactionFeeSchedule_.size(); i++) { output.writeMessage(1, transactionFeeSchedule_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getExpiryTime()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < transactionFeeSchedule_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, transactionFeeSchedule_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpiryTime()); } 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.FeeSchedule)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.FeeSchedule other = (com.hedera.hashgraph.sdk.proto.FeeSchedule) obj; if (!getTransactionFeeScheduleList() .equals(other.getTransactionFeeScheduleList())) return false; if (hasExpiryTime() != other.hasExpiryTime()) return false; if (hasExpiryTime()) { if (!getExpiryTime() .equals(other.getExpiryTime())) 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(); if (getTransactionFeeScheduleCount() > 0) { hash = (37 * hash) + TRANSACTIONFEESCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getTransactionFeeScheduleList().hashCode(); } if (hasExpiryTime()) { hash = (37 * hash) + EXPIRYTIME_FIELD_NUMBER; hash = (53 * hash) + getExpiryTime().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.FeeSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule 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.FeeSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule 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.FeeSchedule 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.FeeSchedule 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.FeeSchedule 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 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.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FeeSchedule) com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.FeeSchedule.class, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.FeeSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTransactionFeeScheduleFieldBuilder(); getExpiryTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (transactionFeeScheduleBuilder_ == null) { transactionFeeSchedule_ = java.util.Collections.emptyList(); } else { transactionFeeSchedule_ = null; transactionFeeScheduleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); expiryTime_ = null; if (expiryTimeBuilder_ != null) { expiryTimeBuilder_.dispose(); expiryTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeSchedule_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeSchedule getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeSchedule build() { com.hedera.hashgraph.sdk.proto.FeeSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeSchedule buildPartial() { com.hedera.hashgraph.sdk.proto.FeeSchedule result = new com.hedera.hashgraph.sdk.proto.FeeSchedule(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.FeeSchedule result) { if (transactionFeeScheduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transactionFeeSchedule_ = java.util.Collections.unmodifiableList(transactionFeeSchedule_); bitField0_ = (bitField0_ & ~0x00000001); } result.transactionFeeSchedule_ = transactionFeeSchedule_; } else { result.transactionFeeSchedule_ = transactionFeeScheduleBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.FeeSchedule result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.expiryTime_ = expiryTimeBuilder_ == null ? expiryTime_ : expiryTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.FeeSchedule) { return mergeFrom((com.hedera.hashgraph.sdk.proto.FeeSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FeeSchedule other) { if (other == com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance()) return this; if (transactionFeeScheduleBuilder_ == null) { if (!other.transactionFeeSchedule_.isEmpty()) { if (transactionFeeSchedule_.isEmpty()) { transactionFeeSchedule_ = other.transactionFeeSchedule_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.addAll(other.transactionFeeSchedule_); } onChanged(); } } else { if (!other.transactionFeeSchedule_.isEmpty()) { if (transactionFeeScheduleBuilder_.isEmpty()) { transactionFeeScheduleBuilder_.dispose(); transactionFeeScheduleBuilder_ = null; transactionFeeSchedule_ = other.transactionFeeSchedule_; bitField0_ = (bitField0_ & ~0x00000001); transactionFeeScheduleBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionFeeScheduleFieldBuilder() : null; } else { transactionFeeScheduleBuilder_.addAllMessages(other.transactionFeeSchedule_); } } } if (other.hasExpiryTime()) { mergeExpiryTime(other.getExpiryTime()); } 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 10: { com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule m = input.readMessage( com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.parser(), extensionRegistry); if (transactionFeeScheduleBuilder_ == null) { ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.add(m); } else { transactionFeeScheduleBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getExpiryTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 java.util.List transactionFeeSchedule_ = java.util.Collections.emptyList(); private void ensureTransactionFeeScheduleIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { transactionFeeSchedule_ = new java.util.ArrayList(transactionFeeSchedule_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.TransactionFeeScheduleOrBuilder> transactionFeeScheduleBuilder_; /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public java.util.List getTransactionFeeScheduleList() { if (transactionFeeScheduleBuilder_ == null) { return java.util.Collections.unmodifiableList(transactionFeeSchedule_); } else { return transactionFeeScheduleBuilder_.getMessageList(); } } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public int getTransactionFeeScheduleCount() { if (transactionFeeScheduleBuilder_ == null) { return transactionFeeSchedule_.size(); } else { return transactionFeeScheduleBuilder_.getCount(); } } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule getTransactionFeeSchedule(int index) { if (transactionFeeScheduleBuilder_ == null) { return transactionFeeSchedule_.get(index); } else { return transactionFeeScheduleBuilder_.getMessage(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) { if (transactionFeeScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.set(index, value); onChanged(); } else { transactionFeeScheduleBuilder_.setMessage(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) { if (transactionFeeScheduleBuilder_ == null) { ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.set(index, builderForValue.build()); onChanged(); } else { transactionFeeScheduleBuilder_.setMessage(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) { if (transactionFeeScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.add(value); onChanged(); } else { transactionFeeScheduleBuilder_.addMessage(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) { if (transactionFeeScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.add(index, value); onChanged(); } else { transactionFeeScheduleBuilder_.addMessage(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) { if (transactionFeeScheduleBuilder_ == null) { ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.add(builderForValue.build()); onChanged(); } else { transactionFeeScheduleBuilder_.addMessage(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) { if (transactionFeeScheduleBuilder_ == null) { ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.add(index, builderForValue.build()); onChanged(); } else { transactionFeeScheduleBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder addAllTransactionFeeSchedule( java.lang.Iterable values) { if (transactionFeeScheduleBuilder_ == null) { ensureTransactionFeeScheduleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactionFeeSchedule_); onChanged(); } else { transactionFeeScheduleBuilder_.addAllMessages(values); } return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder clearTransactionFeeSchedule() { if (transactionFeeScheduleBuilder_ == null) { transactionFeeSchedule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transactionFeeScheduleBuilder_.clear(); } return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public Builder removeTransactionFeeSchedule(int index) { if (transactionFeeScheduleBuilder_ == null) { ensureTransactionFeeScheduleIsMutable(); transactionFeeSchedule_.remove(index); onChanged(); } else { transactionFeeScheduleBuilder_.remove(index); } return this; } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder getTransactionFeeScheduleBuilder( int index) { return getTransactionFeeScheduleFieldBuilder().getBuilder(index); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.TransactionFeeScheduleOrBuilder getTransactionFeeScheduleOrBuilder( int index) { if (transactionFeeScheduleBuilder_ == null) { return transactionFeeSchedule_.get(index); } else { return transactionFeeScheduleBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public java.util.List getTransactionFeeScheduleOrBuilderList() { if (transactionFeeScheduleBuilder_ != null) { return transactionFeeScheduleBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactionFeeSchedule_); } } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder addTransactionFeeScheduleBuilder() { return getTransactionFeeScheduleFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.getDefaultInstance()); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder addTransactionFeeScheduleBuilder( int index) { return getTransactionFeeScheduleFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.getDefaultInstance()); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public java.util.List getTransactionFeeScheduleBuilderList() { return getTransactionFeeScheduleFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.TransactionFeeScheduleOrBuilder> getTransactionFeeScheduleFieldBuilder() { if (transactionFeeScheduleBuilder_ == null) { transactionFeeScheduleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.TransactionFeeScheduleOrBuilder>( transactionFeeSchedule_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transactionFeeSchedule_ = null; } return transactionFeeScheduleBuilder_; } private com.hedera.hashgraph.sdk.proto.TimestampSeconds expiryTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder> expiryTimeBuilder_; /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; * @return Whether the expiryTime field is set. */ public boolean hasExpiryTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; * @return The expiryTime. */ public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpiryTime() { if (expiryTimeBuilder_ == null) { return expiryTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expiryTime_; } else { return expiryTimeBuilder_.getMessage(); } } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder setExpiryTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { if (expiryTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiryTime_ = value; } else { expiryTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder setExpiryTime( com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder builderForValue) { if (expiryTimeBuilder_ == null) { expiryTime_ = builderForValue.build(); } else { expiryTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder mergeExpiryTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { if (expiryTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expiryTime_ != null && expiryTime_ != com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance()) { getExpiryTimeBuilder().mergeFrom(value); } else { expiryTime_ = value; } } else { expiryTimeBuilder_.mergeFrom(value); } if (expiryTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder clearExpiryTime() { bitField0_ = (bitField0_ & ~0x00000002); expiryTime_ = null; if (expiryTimeBuilder_ != null) { expiryTimeBuilder_.dispose(); expiryTimeBuilder_ = null; } onChanged(); return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder getExpiryTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExpiryTimeFieldBuilder().getBuilder(); } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder getExpiryTimeOrBuilder() { if (expiryTimeBuilder_ != null) { return expiryTimeBuilder_.getMessageOrBuilder(); } else { return expiryTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expiryTime_; } } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder> getExpiryTimeFieldBuilder() { if (expiryTimeBuilder_ == null) { expiryTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder>( getExpiryTime(), getParentForChildren(), isClean()); expiryTime_ = null; } return expiryTimeBuilder_; } @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.FeeSchedule) } // @@protoc_insertion_point(class_scope:proto.FeeSchedule) private static final com.hedera.hashgraph.sdk.proto.FeeSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FeeSchedule(); } public static com.hedera.hashgraph.sdk.proto.FeeSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FeeSchedule 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.FeeSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy