
com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
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.GeneratedMessageLite<
CurrentAndNextFeeSchedule, CurrentAndNextFeeSchedule.Builder> implements
// @@protoc_insertion_point(message_implements:proto.CurrentAndNextFeeSchedule)
CurrentAndNextFeeScheduleOrBuilder {
private CurrentAndNextFeeSchedule() {
}
public static final int CURRENTFEESCHEDULE_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.FeeSchedule currentFeeSchedule_;
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
@java.lang.Override
public boolean hasCurrentFeeSchedule() {
return currentFeeSchedule_ != null;
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
@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;
*/
private void setCurrentFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
value.getClass();
currentFeeSchedule_ = value;
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeCurrentFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
value.getClass();
if (currentFeeSchedule_ != null &&
currentFeeSchedule_ != com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance()) {
currentFeeSchedule_ =
com.hedera.hashgraph.sdk.proto.FeeSchedule.newBuilder(currentFeeSchedule_).mergeFrom(value).buildPartial();
} else {
currentFeeSchedule_ = value;
}
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
private void clearCurrentFeeSchedule() { currentFeeSchedule_ = null;
}
public static final int NEXTFEESCHEDULE_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.FeeSchedule nextFeeSchedule_;
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
@java.lang.Override
public boolean hasNextFeeSchedule() {
return nextFeeSchedule_ != null;
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
@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;
*/
private void setNextFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
value.getClass();
nextFeeSchedule_ = value;
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeNextFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
value.getClass();
if (nextFeeSchedule_ != null &&
nextFeeSchedule_ != com.hedera.hashgraph.sdk.proto.FeeSchedule.getDefaultInstance()) {
nextFeeSchedule_ =
com.hedera.hashgraph.sdk.proto.FeeSchedule.newBuilder(nextFeeSchedule_).mergeFrom(value).buildPartial();
} else {
nextFeeSchedule_ = value;
}
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
private void clearNextFeeSchedule() { nextFeeSchedule_ = null;
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* This contains two Fee Schedules with expiry timestamp.
*
*
* Protobuf type {@code proto.CurrentAndNextFeeSchedule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.CurrentAndNextFeeSchedule)
com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeScheduleOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
@java.lang.Override
public boolean hasCurrentFeeSchedule() {
return instance.hasCurrentFeeSchedule();
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeSchedule getCurrentFeeSchedule() {
return instance.getCurrentFeeSchedule();
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
public Builder setCurrentFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
copyOnWrite();
instance.setCurrentFeeSchedule(value);
return this;
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
public Builder setCurrentFeeSchedule(
com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder builderForValue) {
copyOnWrite();
instance.setCurrentFeeSchedule(builderForValue.build());
return this;
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
public Builder mergeCurrentFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
copyOnWrite();
instance.mergeCurrentFeeSchedule(value);
return this;
}
/**
*
**
* Contains current Fee Schedule
*
*
* .proto.FeeSchedule currentFeeSchedule = 1;
*/
public Builder clearCurrentFeeSchedule() { copyOnWrite();
instance.clearCurrentFeeSchedule();
return this;
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
@java.lang.Override
public boolean hasNextFeeSchedule() {
return instance.hasNextFeeSchedule();
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeSchedule getNextFeeSchedule() {
return instance.getNextFeeSchedule();
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
public Builder setNextFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
copyOnWrite();
instance.setNextFeeSchedule(value);
return this;
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
public Builder setNextFeeSchedule(
com.hedera.hashgraph.sdk.proto.FeeSchedule.Builder builderForValue) {
copyOnWrite();
instance.setNextFeeSchedule(builderForValue.build());
return this;
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
public Builder mergeNextFeeSchedule(com.hedera.hashgraph.sdk.proto.FeeSchedule value) {
copyOnWrite();
instance.mergeNextFeeSchedule(value);
return this;
}
/**
*
**
* Contains next Fee Schedule
*
*
* .proto.FeeSchedule nextFeeSchedule = 2;
*/
public Builder clearNextFeeSchedule() { copyOnWrite();
instance.clearNextFeeSchedule();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.CurrentAndNextFeeSchedule)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"currentFeeSchedule_",
"nextFeeSchedule_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\t";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.CurrentAndNextFeeSchedule)
private static final com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule DEFAULT_INSTANCE;
static {
CurrentAndNextFeeSchedule defaultInstance = new CurrentAndNextFeeSchedule();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CurrentAndNextFeeSchedule.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy