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

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

There is a newer version: 2.40.0
Show 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;

/**
 * 
 **
 * This contains two Fee Schedules with expiry timestamp.
 * 
* * Protobuf type {@code proto.CurrentAndNextFeeSchedule} */ public final class CurrentAndNextFeeSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.CurrentAndNextFeeSchedule) CurrentAndNextFeeScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use CurrentAndNextFeeSchedule.newBuilder() to construct. private CurrentAndNextFeeSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CurrentAndNextFeeSchedule() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CurrentAndNextFeeSchedule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_CurrentAndNextFeeSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_CurrentAndNextFeeSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.class, com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.Builder.class); } private int bitField0_; public static final int CURRENTFEESCHEDULE_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.FeeSchedule currentFeeSchedule_; /** *
   **
   * Contains current Fee Schedule
   * 
* * .proto.FeeSchedule currentFeeSchedule = 1; * @return Whether the currentFeeSchedule field is set. */ @java.lang.Override public boolean hasCurrentFeeSchedule() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * Contains current Fee Schedule
   * 
* * .proto.FeeSchedule currentFeeSchedule = 1; * @return The currentFeeSchedule. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeSchedule getCurrentFeeSchedule() { return currentFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : currentFeeSchedule_; } /** *
   **
   * Contains current Fee Schedule
   * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder getCurrentFeeScheduleOrBuilder() { return currentFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : currentFeeSchedule_; } public static final int NEXTFEESCHEDULE_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.FeeSchedule nextFeeSchedule_; /** *
   **
   * Contains next Fee Schedule
   * 
* * .proto.FeeSchedule nextFeeSchedule = 2; * @return Whether the nextFeeSchedule field is set. */ @java.lang.Override public boolean hasNextFeeSchedule() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * Contains next Fee Schedule
   * 
* * .proto.FeeSchedule nextFeeSchedule = 2; * @return The nextFeeSchedule. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeSchedule getNextFeeSchedule() { return nextFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : nextFeeSchedule_; } /** *
   **
   * Contains next Fee Schedule
   * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder getNextFeeScheduleOrBuilder() { return nextFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : nextFeeSchedule_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCurrentFeeSchedule()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getNextFeeSchedule()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCurrentFeeSchedule()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNextFeeSchedule()); } 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.CurrentAndNextFeeSchedule)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule other = (com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule) obj; if (hasCurrentFeeSchedule() != other.hasCurrentFeeSchedule()) return false; if (hasCurrentFeeSchedule()) { if (!getCurrentFeeSchedule() .equals(other.getCurrentFeeSchedule())) return false; } if (hasNextFeeSchedule() != other.hasNextFeeSchedule()) return false; if (hasNextFeeSchedule()) { if (!getNextFeeSchedule() .equals(other.getNextFeeSchedule())) 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 (hasCurrentFeeSchedule()) { hash = (37 * hash) + CURRENTFEESCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getCurrentFeeSchedule().hashCode(); } if (hasNextFeeSchedule()) { hash = (37 * hash) + NEXTFEESCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getNextFeeSchedule().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule 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; } /** *
   **
   * This contains two Fee Schedules with expiry timestamp.
   * 
* * Protobuf type {@code proto.CurrentAndNextFeeSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.CurrentAndNextFeeSchedule) com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_CurrentAndNextFeeSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_CurrentAndNextFeeSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.class, com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCurrentFeeScheduleFieldBuilder(); getNextFeeScheduleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; currentFeeSchedule_ = null; if (currentFeeScheduleBuilder_ != null) { currentFeeScheduleBuilder_.dispose(); currentFeeScheduleBuilder_ = null; } nextFeeSchedule_ = null; if (nextFeeScheduleBuilder_ != null) { nextFeeScheduleBuilder_.dispose(); nextFeeScheduleBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_CurrentAndNextFeeSchedule_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule build() { com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule buildPartial() { com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule result = new com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.currentFeeSchedule_ = currentFeeScheduleBuilder_ == null ? currentFeeSchedule_ : currentFeeScheduleBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nextFeeSchedule_ = nextFeeScheduleBuilder_ == null ? nextFeeSchedule_ : nextFeeScheduleBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.CurrentAndNextFeeSchedule) { return mergeFrom((com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule other) { if (other == com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.getDefaultInstance()) return this; if (other.hasCurrentFeeSchedule()) { mergeCurrentFeeSchedule(other.getCurrentFeeSchedule()); } if (other.hasNextFeeSchedule()) { mergeNextFeeSchedule(other.getNextFeeSchedule()); } 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: { input.readMessage( getCurrentFeeScheduleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getNextFeeScheduleFieldBuilder().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 com.hedera.hashgraph.sdk.proto.FeeSchedule currentFeeSchedule_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FeeSchedule, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder> currentFeeScheduleBuilder_; /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; * @return Whether the currentFeeSchedule field is set. */ public boolean hasCurrentFeeSchedule() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; * @return The currentFeeSchedule. */ public com.hedera.hashgraph.sdk.proto.FeeSchedule getCurrentFeeSchedule() { if (currentFeeScheduleBuilder_ == null) { return currentFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : currentFeeSchedule_; } else { return currentFeeScheduleBuilder_.getMessage(); } } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ public Builder setCurrentFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) { if (currentFeeScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentFeeSchedule_ = value; } else { currentFeeScheduleBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ public Builder setCurrentFeeSchedule( com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder builderForValue) { if (currentFeeScheduleBuilder_ == null) { currentFeeSchedule_ = builderForValue.build(); } else { currentFeeScheduleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ public Builder mergeCurrentFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) { if (currentFeeScheduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && currentFeeSchedule_ != null && currentFeeSchedule_ != com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance()) { getCurrentFeeScheduleBuilder().mergeFrom(value); } else { currentFeeSchedule_ = value; } } else { currentFeeScheduleBuilder_.mergeFrom(value); } if (currentFeeSchedule_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ public Builder clearCurrentFeeSchedule() { bitField0_ = (bitField0_ & ~0x00000001); currentFeeSchedule_ = null; if (currentFeeScheduleBuilder_ != null) { currentFeeScheduleBuilder_.dispose(); currentFeeScheduleBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder getCurrentFeeScheduleBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCurrentFeeScheduleFieldBuilder().getBuilder(); } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ public com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder getCurrentFeeScheduleOrBuilder() { if (currentFeeScheduleBuilder_ != null) { return currentFeeScheduleBuilder_.getMessageOrBuilder(); } else { return currentFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : currentFeeSchedule_; } } /** *
     **
     * Contains current Fee Schedule
     * 
* * .proto.FeeSchedule currentFeeSchedule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FeeSchedule, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder> getCurrentFeeScheduleFieldBuilder() { if (currentFeeScheduleBuilder_ == null) { currentFeeScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FeeSchedule, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder>( getCurrentFeeSchedule(), getParentForChildren(), isClean()); currentFeeSchedule_ = null; } return currentFeeScheduleBuilder_; } private com.hedera.hashgraph.sdk.proto.FeeSchedule nextFeeSchedule_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FeeSchedule, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder> nextFeeScheduleBuilder_; /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; * @return Whether the nextFeeSchedule field is set. */ public boolean hasNextFeeSchedule() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; * @return The nextFeeSchedule. */ public com.hedera.hashgraph.sdk.proto.FeeSchedule getNextFeeSchedule() { if (nextFeeScheduleBuilder_ == null) { return nextFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : nextFeeSchedule_; } else { return nextFeeScheduleBuilder_.getMessage(); } } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ public Builder setNextFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) { if (nextFeeScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nextFeeSchedule_ = value; } else { nextFeeScheduleBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ public Builder setNextFeeSchedule( com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder builderForValue) { if (nextFeeScheduleBuilder_ == null) { nextFeeSchedule_ = builderForValue.build(); } else { nextFeeScheduleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ public Builder mergeNextFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) { if (nextFeeScheduleBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && nextFeeSchedule_ != null && nextFeeSchedule_ != com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance()) { getNextFeeScheduleBuilder().mergeFrom(value); } else { nextFeeSchedule_ = value; } } else { nextFeeScheduleBuilder_.mergeFrom(value); } if (nextFeeSchedule_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ public Builder clearNextFeeSchedule() { bitField0_ = (bitField0_ & ~0x00000002); nextFeeSchedule_ = null; if (nextFeeScheduleBuilder_ != null) { nextFeeScheduleBuilder_.dispose(); nextFeeScheduleBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ public com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder getNextFeeScheduleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNextFeeScheduleFieldBuilder().getBuilder(); } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ public com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder getNextFeeScheduleOrBuilder() { if (nextFeeScheduleBuilder_ != null) { return nextFeeScheduleBuilder_.getMessageOrBuilder(); } else { return nextFeeSchedule_ == null ? com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance() : nextFeeSchedule_; } } /** *
     **
     * Contains next Fee Schedule
     * 
* * .proto.FeeSchedule nextFeeSchedule = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FeeSchedule, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder> getNextFeeScheduleFieldBuilder() { if (nextFeeScheduleBuilder_ == null) { nextFeeScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FeeSchedule, com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder, com.hedera.hashgraph.sdk.proto.FeeScheduleOrBuilder>( getNextFeeSchedule(), getParentForChildren(), isClean()); nextFeeSchedule_ = null; } return nextFeeScheduleBuilder_; } @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.CurrentAndNextFeeSchedule) } // @@protoc_insertion_point(class_scope:proto.CurrentAndNextFeeSchedule) private static final com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule(); } public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CurrentAndNextFeeSchedule 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.CurrentAndNextFeeSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy