com.hederahashgraph.api.proto.java.FeeData Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* The total fee charged for a transaction. It is composed of three components - a node fee that
* compensates the specific node that submitted the transaction, a network fee that compensates the
* network for assigning the transaction a consensus timestamp, and a service fee that compensates
* the network for the ongoing maintenance of the consequences of the transaction.
*
*
* Protobuf type {@code proto.FeeData}
*/
public final class FeeData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.FeeData)
FeeDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use FeeData.newBuilder() to construct.
private FeeData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FeeData() {
subType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FeeData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FeeData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
com.hederahashgraph.api.proto.java.FeeComponents.Builder subBuilder = null;
if (nodedata_ != null) {
subBuilder = nodedata_.toBuilder();
}
nodedata_ = input.readMessage(com.hederahashgraph.api.proto.java.FeeComponents.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodedata_);
nodedata_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.FeeComponents.Builder subBuilder = null;
if (networkdata_ != null) {
subBuilder = networkdata_.toBuilder();
}
networkdata_ = input.readMessage(com.hederahashgraph.api.proto.java.FeeComponents.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(networkdata_);
networkdata_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.hederahashgraph.api.proto.java.FeeComponents.Builder subBuilder = null;
if (servicedata_ != null) {
subBuilder = servicedata_.toBuilder();
}
servicedata_ = input.readMessage(com.hederahashgraph.api.proto.java.FeeComponents.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(servicedata_);
servicedata_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
subType_ = rawValue;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.FeeData.class, com.hederahashgraph.api.proto.java.FeeData.Builder.class);
}
public static final int NODEDATA_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.FeeComponents nodedata_;
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
* @return Whether the nodedata field is set.
*/
@java.lang.Override
public boolean hasNodedata() {
return nodedata_ != null;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
* @return The nodedata.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeComponents getNodedata() {
return nodedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : nodedata_;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNodedataOrBuilder() {
return getNodedata();
}
public static final int NETWORKDATA_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.FeeComponents networkdata_;
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
* @return Whether the networkdata field is set.
*/
@java.lang.Override
public boolean hasNetworkdata() {
return networkdata_ != null;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
* @return The networkdata.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeComponents getNetworkdata() {
return networkdata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : networkdata_;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNetworkdataOrBuilder() {
return getNetworkdata();
}
public static final int SERVICEDATA_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.FeeComponents servicedata_;
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
* @return Whether the servicedata field is set.
*/
@java.lang.Override
public boolean hasServicedata() {
return servicedata_ != null;
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
* @return The servicedata.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeComponents getServicedata() {
return servicedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : servicedata_;
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getServicedataOrBuilder() {
return getServicedata();
}
public static final int SUBTYPE_FIELD_NUMBER = 4;
private int subType_;
/**
*
**
* SubType distinguishing between different types of FeeData, correlating
* to the same HederaFunctionality
*
*
* .proto.SubType subType = 4;
* @return The enum numeric value on the wire for subType.
*/
@java.lang.Override public int getSubTypeValue() {
return subType_;
}
/**
*
**
* SubType distinguishing between different types of FeeData, correlating
* to the same HederaFunctionality
*
*
* .proto.SubType subType = 4;
* @return The subType.
*/
@java.lang.Override public com.hederahashgraph.api.proto.java.SubType getSubType() {
@SuppressWarnings("deprecation")
com.hederahashgraph.api.proto.java.SubType result = com.hederahashgraph.api.proto.java.SubType.valueOf(subType_);
return result == null ? com.hederahashgraph.api.proto.java.SubType.UNRECOGNIZED : result;
}
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 (nodedata_ != null) {
output.writeMessage(1, getNodedata());
}
if (networkdata_ != null) {
output.writeMessage(2, getNetworkdata());
}
if (servicedata_ != null) {
output.writeMessage(3, getServicedata());
}
if (subType_ != com.hederahashgraph.api.proto.java.SubType.DEFAULT.getNumber()) {
output.writeEnum(4, subType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodedata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNodedata());
}
if (networkdata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNetworkdata());
}
if (servicedata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getServicedata());
}
if (subType_ != com.hederahashgraph.api.proto.java.SubType.DEFAULT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, subType_);
}
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.FeeData)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.FeeData other = (com.hederahashgraph.api.proto.java.FeeData) obj;
if (hasNodedata() != other.hasNodedata()) return false;
if (hasNodedata()) {
if (!getNodedata()
.equals(other.getNodedata())) return false;
}
if (hasNetworkdata() != other.hasNetworkdata()) return false;
if (hasNetworkdata()) {
if (!getNetworkdata()
.equals(other.getNetworkdata())) return false;
}
if (hasServicedata() != other.hasServicedata()) return false;
if (hasServicedata()) {
if (!getServicedata()
.equals(other.getServicedata())) return false;
}
if (subType_ != other.subType_) 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 (hasNodedata()) {
hash = (37 * hash) + NODEDATA_FIELD_NUMBER;
hash = (53 * hash) + getNodedata().hashCode();
}
if (hasNetworkdata()) {
hash = (37 * hash) + NETWORKDATA_FIELD_NUMBER;
hash = (53 * hash) + getNetworkdata().hashCode();
}
if (hasServicedata()) {
hash = (37 * hash) + SERVICEDATA_FIELD_NUMBER;
hash = (53 * hash) + getServicedata().hashCode();
}
hash = (37 * hash) + SUBTYPE_FIELD_NUMBER;
hash = (53 * hash) + subType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.FeeData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.FeeData 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.FeeData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.FeeData 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.FeeData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.FeeData 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.FeeData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.FeeData 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.FeeData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.FeeData 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.FeeData 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.FeeData 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.FeeData 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;
}
/**
*
**
* The total fee charged for a transaction. It is composed of three components - a node fee that
* compensates the specific node that submitted the transaction, a network fee that compensates the
* network for assigning the transaction a consensus timestamp, and a service fee that compensates
* the network for the ongoing maintenance of the consequences of the transaction.
*
*
* Protobuf type {@code proto.FeeData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.FeeData)
com.hederahashgraph.api.proto.java.FeeDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.FeeData.class, com.hederahashgraph.api.proto.java.FeeData.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.FeeData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodedataBuilder_ == null) {
nodedata_ = null;
} else {
nodedata_ = null;
nodedataBuilder_ = null;
}
if (networkdataBuilder_ == null) {
networkdata_ = null;
} else {
networkdata_ = null;
networkdataBuilder_ = null;
}
if (servicedataBuilder_ == null) {
servicedata_ = null;
} else {
servicedata_ = null;
servicedataBuilder_ = null;
}
subType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeData getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.FeeData.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeData build() {
com.hederahashgraph.api.proto.java.FeeData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.FeeData buildPartial() {
com.hederahashgraph.api.proto.java.FeeData result = new com.hederahashgraph.api.proto.java.FeeData(this);
if (nodedataBuilder_ == null) {
result.nodedata_ = nodedata_;
} else {
result.nodedata_ = nodedataBuilder_.build();
}
if (networkdataBuilder_ == null) {
result.networkdata_ = networkdata_;
} else {
result.networkdata_ = networkdataBuilder_.build();
}
if (servicedataBuilder_ == null) {
result.servicedata_ = servicedata_;
} else {
result.servicedata_ = servicedataBuilder_.build();
}
result.subType_ = subType_;
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.FeeData) {
return mergeFrom((com.hederahashgraph.api.proto.java.FeeData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.FeeData other) {
if (other == com.hederahashgraph.api.proto.java.FeeData.getDefaultInstance()) return this;
if (other.hasNodedata()) {
mergeNodedata(other.getNodedata());
}
if (other.hasNetworkdata()) {
mergeNetworkdata(other.getNetworkdata());
}
if (other.hasServicedata()) {
mergeServicedata(other.getServicedata());
}
if (other.subType_ != 0) {
setSubTypeValue(other.getSubTypeValue());
}
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.FeeData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.FeeData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.hederahashgraph.api.proto.java.FeeComponents nodedata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> nodedataBuilder_;
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
* @return Whether the nodedata field is set.
*/
public boolean hasNodedata() {
return nodedataBuilder_ != null || nodedata_ != null;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
* @return The nodedata.
*/
public com.hederahashgraph.api.proto.java.FeeComponents getNodedata() {
if (nodedataBuilder_ == null) {
return nodedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : nodedata_;
} else {
return nodedataBuilder_.getMessage();
}
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder setNodedata(com.hederahashgraph.api.proto.java.FeeComponents value) {
if (nodedataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodedata_ = value;
onChanged();
} else {
nodedataBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder setNodedata(
com.hederahashgraph.api.proto.java.FeeComponents.Builder builderForValue) {
if (nodedataBuilder_ == null) {
nodedata_ = builderForValue.build();
onChanged();
} else {
nodedataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder mergeNodedata(com.hederahashgraph.api.proto.java.FeeComponents value) {
if (nodedataBuilder_ == null) {
if (nodedata_ != null) {
nodedata_ =
com.hederahashgraph.api.proto.java.FeeComponents.newBuilder(nodedata_).mergeFrom(value).buildPartial();
} else {
nodedata_ = value;
}
onChanged();
} else {
nodedataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder clearNodedata() {
if (nodedataBuilder_ == null) {
nodedata_ = null;
onChanged();
} else {
nodedata_ = null;
nodedataBuilder_ = null;
}
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public com.hederahashgraph.api.proto.java.FeeComponents.Builder getNodedataBuilder() {
onChanged();
return getNodedataFieldBuilder().getBuilder();
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNodedataOrBuilder() {
if (nodedataBuilder_ != null) {
return nodedataBuilder_.getMessageOrBuilder();
} else {
return nodedata_ == null ?
com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : nodedata_;
}
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>
getNodedataFieldBuilder() {
if (nodedataBuilder_ == null) {
nodedataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>(
getNodedata(),
getParentForChildren(),
isClean());
nodedata_ = null;
}
return nodedataBuilder_;
}
private com.hederahashgraph.api.proto.java.FeeComponents networkdata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> networkdataBuilder_;
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
* @return Whether the networkdata field is set.
*/
public boolean hasNetworkdata() {
return networkdataBuilder_ != null || networkdata_ != null;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
* @return The networkdata.
*/
public com.hederahashgraph.api.proto.java.FeeComponents getNetworkdata() {
if (networkdataBuilder_ == null) {
return networkdata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : networkdata_;
} else {
return networkdataBuilder_.getMessage();
}
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public Builder setNetworkdata(com.hederahashgraph.api.proto.java.FeeComponents value) {
if (networkdataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkdata_ = value;
onChanged();
} else {
networkdataBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public Builder setNetworkdata(
com.hederahashgraph.api.proto.java.FeeComponents.Builder builderForValue) {
if (networkdataBuilder_ == null) {
networkdata_ = builderForValue.build();
onChanged();
} else {
networkdataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public Builder mergeNetworkdata(com.hederahashgraph.api.proto.java.FeeComponents value) {
if (networkdataBuilder_ == null) {
if (networkdata_ != null) {
networkdata_ =
com.hederahashgraph.api.proto.java.FeeComponents.newBuilder(networkdata_).mergeFrom(value).buildPartial();
} else {
networkdata_ = value;
}
onChanged();
} else {
networkdataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public Builder clearNetworkdata() {
if (networkdataBuilder_ == null) {
networkdata_ = null;
onChanged();
} else {
networkdata_ = null;
networkdataBuilder_ = null;
}
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public com.hederahashgraph.api.proto.java.FeeComponents.Builder getNetworkdataBuilder() {
onChanged();
return getNetworkdataFieldBuilder().getBuilder();
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNetworkdataOrBuilder() {
if (networkdataBuilder_ != null) {
return networkdataBuilder_.getMessageOrBuilder();
} else {
return networkdata_ == null ?
com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : networkdata_;
}
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>
getNetworkdataFieldBuilder() {
if (networkdataBuilder_ == null) {
networkdataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>(
getNetworkdata(),
getParentForChildren(),
isClean());
networkdata_ = null;
}
return networkdataBuilder_;
}
private com.hederahashgraph.api.proto.java.FeeComponents servicedata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> servicedataBuilder_;
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
* @return Whether the servicedata field is set.
*/
public boolean hasServicedata() {
return servicedataBuilder_ != null || servicedata_ != null;
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
* @return The servicedata.
*/
public com.hederahashgraph.api.proto.java.FeeComponents getServicedata() {
if (servicedataBuilder_ == null) {
return servicedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : servicedata_;
} else {
return servicedataBuilder_.getMessage();
}
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
public Builder setServicedata(com.hederahashgraph.api.proto.java.FeeComponents value) {
if (servicedataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
servicedata_ = value;
onChanged();
} else {
servicedataBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
public Builder setServicedata(
com.hederahashgraph.api.proto.java.FeeComponents.Builder builderForValue) {
if (servicedataBuilder_ == null) {
servicedata_ = builderForValue.build();
onChanged();
} else {
servicedataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
public Builder mergeServicedata(com.hederahashgraph.api.proto.java.FeeComponents value) {
if (servicedataBuilder_ == null) {
if (servicedata_ != null) {
servicedata_ =
com.hederahashgraph.api.proto.java.FeeComponents.newBuilder(servicedata_).mergeFrom(value).buildPartial();
} else {
servicedata_ = value;
}
onChanged();
} else {
servicedataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
public Builder clearServicedata() {
if (servicedataBuilder_ == null) {
servicedata_ = null;
onChanged();
} else {
servicedata_ = null;
servicedataBuilder_ = null;
}
return this;
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
public com.hederahashgraph.api.proto.java.FeeComponents.Builder getServicedataBuilder() {
onChanged();
return getServicedataFieldBuilder().getBuilder();
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getServicedataOrBuilder() {
if (servicedataBuilder_ != null) {
return servicedataBuilder_.getMessageOrBuilder();
} else {
return servicedata_ == null ?
com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : servicedata_;
}
}
/**
*
**
* Fee paid to the network for providing the service associated with the
* transaction; for instance, storing a file
*
*
* .proto.FeeComponents servicedata = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>
getServicedataFieldBuilder() {
if (servicedataBuilder_ == null) {
servicedataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>(
getServicedata(),
getParentForChildren(),
isClean());
servicedata_ = null;
}
return servicedataBuilder_;
}
private int subType_ = 0;
/**
*
**
* SubType distinguishing between different types of FeeData, correlating
* to the same HederaFunctionality
*
*
* .proto.SubType subType = 4;
* @return The enum numeric value on the wire for subType.
*/
@java.lang.Override public int getSubTypeValue() {
return subType_;
}
/**
*
**
* SubType distinguishing between different types of FeeData, correlating
* to the same HederaFunctionality
*
*
* .proto.SubType subType = 4;
* @param value The enum numeric value on the wire for subType to set.
* @return This builder for chaining.
*/
public Builder setSubTypeValue(int value) {
subType_ = value;
onChanged();
return this;
}
/**
*
**
* SubType distinguishing between different types of FeeData, correlating
* to the same HederaFunctionality
*
*
* .proto.SubType subType = 4;
* @return The subType.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.SubType getSubType() {
@SuppressWarnings("deprecation")
com.hederahashgraph.api.proto.java.SubType result = com.hederahashgraph.api.proto.java.SubType.valueOf(subType_);
return result == null ? com.hederahashgraph.api.proto.java.SubType.UNRECOGNIZED : result;
}
/**
*
**
* SubType distinguishing between different types of FeeData, correlating
* to the same HederaFunctionality
*
*
* .proto.SubType subType = 4;
* @param value The subType to set.
* @return This builder for chaining.
*/
public Builder setSubType(com.hederahashgraph.api.proto.java.SubType value) {
if (value == null) {
throw new NullPointerException();
}
subType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* SubType distinguishing between different types of FeeData, correlating
* to the same HederaFunctionality
*
*
* .proto.SubType subType = 4;
* @return This builder for chaining.
*/
public Builder clearSubType() {
subType_ = 0;
onChanged();
return this;
}
@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.FeeData)
}
// @@protoc_insertion_point(class_scope:proto.FeeData)
private static final com.hederahashgraph.api.proto.java.FeeData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FeeData();
}
public static com.hederahashgraph.api.proto.java.FeeData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FeeData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FeeData(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.FeeData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}