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

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

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FeeSchedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { transactionFeeSchedule_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } transactionFeeSchedule_.add( input.readMessage(com.hederahashgraph.api.proto.java.TransactionFeeSchedule.parser(), extensionRegistry)); break; } case 18: { com.hederahashgraph.api.proto.java.TimestampSeconds.Builder subBuilder = null; if (expiryTime_ != null) { subBuilder = expiryTime_.toBuilder(); } expiryTime_ = input.readMessage(com.hederahashgraph.api.proto.java.TimestampSeconds.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expiryTime_); expiryTime_ = subBuilder.buildPartial(); } 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { transactionFeeSchedule_ = java.util.Collections.unmodifiableList(transactionFeeSchedule_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FeeSchedule.class, com.hederahashgraph.api.proto.java.FeeSchedule.Builder.class); } public static final int TRANSACTIONFEESCHEDULE_FIELD_NUMBER = 1; 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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder getTransactionFeeScheduleOrBuilder( int index) { return transactionFeeSchedule_.get(index); } public static final int EXPIRYTIME_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.TimestampSeconds expiryTime_; /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; * @return Whether the expiryTime field is set. */ @java.lang.Override public boolean hasExpiryTime() { return expiryTime_ != null; } /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; * @return The expiryTime. */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampSeconds getExpiryTime() { return expiryTime_ == null ? com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expiryTime_; } /** *
   **
   * FeeSchedule expiry time
   * 
* * .proto.TimestampSeconds expiryTime = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpiryTimeOrBuilder() { return getExpiryTime(); } 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 (expiryTime_ != null) { output.writeMessage(2, getExpiryTime()); } unknownFields.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 (expiryTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpiryTime()); } 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.FeeSchedule)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.FeeSchedule other = (com.hederahashgraph.api.proto.java.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 (!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(); 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FeeSchedule 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.FeeSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FeeSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FeeSchedule 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.FeeSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FeeSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FeeSchedule 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FeeScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FeeSchedule.class, com.hederahashgraph.api.proto.java.FeeSchedule.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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(); } } @java.lang.Override public Builder clear() { super.clear(); if (transactionFeeScheduleBuilder_ == null) { transactionFeeSchedule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { transactionFeeScheduleBuilder_.clear(); } if (expiryTimeBuilder_ == null) { expiryTime_ = null; } else { expiryTime_ = null; expiryTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.FeeSchedule getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.FeeSchedule.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.FeeSchedule build() { com.hederahashgraph.api.proto.java.FeeSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.FeeSchedule buildPartial() { com.hederahashgraph.api.proto.java.FeeSchedule result = new com.hederahashgraph.api.proto.java.FeeSchedule(this); int from_bitField0_ = bitField0_; if (transactionFeeScheduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transactionFeeSchedule_ = java.util.Collections.unmodifiableList(transactionFeeSchedule_); bitField0_ = (bitField0_ & ~0x00000001); } result.transactionFeeSchedule_ = transactionFeeSchedule_; } else { result.transactionFeeSchedule_ = transactionFeeScheduleBuilder_.build(); } if (expiryTimeBuilder_ == null) { result.expiryTime_ = expiryTime_; } else { result.expiryTime_ = expiryTimeBuilder_.build(); } 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.FeeSchedule) { return mergeFrom((com.hederahashgraph.api.proto.java.FeeSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.FeeSchedule other) { if (other == com.hederahashgraph.api.proto.java.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.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.FeeSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.FeeSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.hederahashgraph.api.proto.java.TransactionFeeSchedule, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder getTransactionFeeScheduleBuilder( int index) { return getTransactionFeeScheduleFieldBuilder().getBuilder(index); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder addTransactionFeeScheduleBuilder() { return getTransactionFeeScheduleFieldBuilder().addBuilder( com.hederahashgraph.api.proto.java.TransactionFeeSchedule.getDefaultInstance()); } /** *
     **
     * List of price coefficients for network resources
     * 
* * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; */ public com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder addTransactionFeeScheduleBuilder( int index) { return getTransactionFeeScheduleFieldBuilder().addBuilder( index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionFeeSchedule, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder, com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder> getTransactionFeeScheduleFieldBuilder() { if (transactionFeeScheduleBuilder_ == null) { transactionFeeScheduleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionFeeSchedule, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder, com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder>( transactionFeeSchedule_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transactionFeeSchedule_ = null; } return transactionFeeScheduleBuilder_; } private com.hederahashgraph.api.proto.java.TimestampSeconds expiryTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder> expiryTimeBuilder_; /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; * @return Whether the expiryTime field is set. */ public boolean hasExpiryTime() { return expiryTimeBuilder_ != null || expiryTime_ != null; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; * @return The expiryTime. */ public com.hederahashgraph.api.proto.java.TimestampSeconds getExpiryTime() { if (expiryTimeBuilder_ == null) { return expiryTime_ == null ? com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expiryTime_; } else { return expiryTimeBuilder_.getMessage(); } } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder setExpiryTime(com.hederahashgraph.api.proto.java.TimestampSeconds value) { if (expiryTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiryTime_ = value; onChanged(); } else { expiryTimeBuilder_.setMessage(value); } return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder setExpiryTime( com.hederahashgraph.api.proto.java.TimestampSeconds.Builder builderForValue) { if (expiryTimeBuilder_ == null) { expiryTime_ = builderForValue.build(); onChanged(); } else { expiryTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder mergeExpiryTime(com.hederahashgraph.api.proto.java.TimestampSeconds value) { if (expiryTimeBuilder_ == null) { if (expiryTime_ != null) { expiryTime_ = com.hederahashgraph.api.proto.java.TimestampSeconds.newBuilder(expiryTime_).mergeFrom(value).buildPartial(); } else { expiryTime_ = value; } onChanged(); } else { expiryTimeBuilder_.mergeFrom(value); } return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public Builder clearExpiryTime() { if (expiryTimeBuilder_ == null) { expiryTime_ = null; onChanged(); } else { expiryTime_ = null; expiryTimeBuilder_ = null; } return this; } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public com.hederahashgraph.api.proto.java.TimestampSeconds.Builder getExpiryTimeBuilder() { onChanged(); return getExpiryTimeFieldBuilder().getBuilder(); } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ public com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpiryTimeOrBuilder() { if (expiryTimeBuilder_ != null) { return expiryTimeBuilder_.getMessageOrBuilder(); } else { return expiryTime_ == null ? com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expiryTime_; } } /** *
     **
     * FeeSchedule expiry time
     * 
* * .proto.TimestampSeconds expiryTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder> getExpiryTimeFieldBuilder() { if (expiryTimeBuilder_ == null) { expiryTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FeeSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FeeSchedule(); } public static com.hederahashgraph.api.proto.java.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 { return new FeeSchedule(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.FeeSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy