com.hedera.hashgraph.sdk.proto.FeeData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* 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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FeeData.class, com.hedera.hashgraph.sdk.proto.FeeData.Builder.class);
}
private int bitField0_;
public static final int NODEDATA_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
* @return The nodedata.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeComponents getNodedata() {
return nodedata_ == null ? com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : nodedata_;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder getNodedataOrBuilder() {
return nodedata_ == null ? com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : nodedata_;
}
public static final int NETWORKDATA_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
* @return The networkdata.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeComponents getNetworkdata() {
return networkdata_ == null ? com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : networkdata_;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder getNetworkdataOrBuilder() {
return networkdata_ == null ? com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : networkdata_;
}
public static final int SERVICEDATA_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.FeeComponents getServicedata() {
return servicedata_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder getServicedataOrBuilder() {
return servicedata_ == null ? com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : servicedata_;
}
public static final int SUBTYPE_FIELD_NUMBER = 4;
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;
* @return The subType.
*/
@java.lang.Override public com.hedera.hashgraph.sdk.proto.SubType getSubType() {
com.hedera.hashgraph.sdk.proto.SubType result = com.hedera.hashgraph.sdk.proto.SubType.forNumber(subType_);
return result == null ? com.hedera.hashgraph.sdk.proto.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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getNodedata());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getNetworkdata());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getServicedata());
}
if (subType_ != com.hedera.hashgraph.sdk.proto.SubType.DEFAULT.getNumber()) {
output.writeEnum(4, subType_);
}
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, getNodedata());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNetworkdata());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getServicedata());
}
if (subType_ != com.hedera.hashgraph.sdk.proto.SubType.DEFAULT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, subType_);
}
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.FeeData)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.FeeData other = (com.hedera.hashgraph.sdk.proto.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 (!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 (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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.FeeData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FeeData 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.FeeData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FeeData 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.FeeData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeData 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.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FeeData.class, com.hedera.hashgraph.sdk.proto.FeeData.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.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) {
getNodedataFieldBuilder();
getNetworkdataFieldBuilder();
getServicedataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nodedata_ = null;
if (nodedataBuilder_ != null) {
nodedataBuilder_.dispose();
nodedataBuilder_ = null;
}
networkdata_ = null;
if (networkdataBuilder_ != null) {
networkdataBuilder_.dispose();
networkdataBuilder_ = null;
}
servicedata_ = null;
if (servicedataBuilder_ != null) {
servicedataBuilder_.dispose();
servicedataBuilder_ = null;
}
subType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_FeeData_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeData getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeData build() {
com.hedera.hashgraph.sdk.proto.FeeData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeData buildPartial() {
com.hedera.hashgraph.sdk.proto.FeeData result = new com.hedera.hashgraph.sdk.proto.FeeData(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.FeeData result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nodedata_ = nodedataBuilder_ == null
? nodedata_
: nodedataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.networkdata_ = networkdataBuilder_ == null
? networkdata_
: networkdataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.servicedata_ = servicedataBuilder_ == null
? servicedata_
: servicedataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.subType_ = subType_;
}
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.FeeData) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.FeeData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FeeData other) {
if (other == com.hedera.hashgraph.sdk.proto.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.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(
getNodedataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getNetworkdataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getServicedataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
subType_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
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.FeeComponents nodedata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder> nodedataBuilder_;
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
* @return Whether the nodedata field is set.
*/
public boolean hasNodedata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
* @return The nodedata.
*/
public com.hedera.hashgraph.sdk.proto.FeeComponents getNodedata() {
if (nodedataBuilder_ == null) {
return nodedata_ == null ? com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : nodedata_;
} else {
return nodedataBuilder_.getMessage();
}
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder setNodedata(com.hedera.hashgraph.sdk.proto.FeeComponents value) {
if (nodedataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodedata_ = value;
} else {
nodedataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder setNodedata(
com.hedera.hashgraph.sdk.proto.FeeComponents.Builder builderForValue) {
if (nodedataBuilder_ == null) {
nodedata_ = builderForValue.build();
} else {
nodedataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder mergeNodedata(com.hedera.hashgraph.sdk.proto.FeeComponents value) {
if (nodedataBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
nodedata_ != null &&
nodedata_ != com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance()) {
getNodedataBuilder().mergeFrom(value);
} else {
nodedata_ = value;
}
} else {
nodedataBuilder_.mergeFrom(value);
}
if (nodedata_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public Builder clearNodedata() {
bitField0_ = (bitField0_ & ~0x00000001);
nodedata_ = null;
if (nodedataBuilder_ != null) {
nodedataBuilder_.dispose();
nodedataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public com.hedera.hashgraph.sdk.proto.FeeComponents.Builder getNodedataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodedataFieldBuilder().getBuilder();
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
public com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder getNodedataOrBuilder() {
if (nodedataBuilder_ != null) {
return nodedataBuilder_.getMessageOrBuilder();
} else {
return nodedata_ == null ?
com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : nodedata_;
}
}
/**
*
**
* Fee paid to the submitting node
*
*
* .proto.FeeComponents nodedata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder>
getNodedataFieldBuilder() {
if (nodedataBuilder_ == null) {
nodedataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder>(
getNodedata(),
getParentForChildren(),
isClean());
nodedata_ = null;
}
return nodedataBuilder_;
}
private com.hedera.hashgraph.sdk.proto.FeeComponents networkdata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
* @return The networkdata.
*/
public com.hedera.hashgraph.sdk.proto.FeeComponents getNetworkdata() {
if (networkdataBuilder_ == null) {
return networkdata_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeComponents value) {
if (networkdataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkdata_ = value;
} else {
networkdataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public Builder setNetworkdata(
com.hedera.hashgraph.sdk.proto.FeeComponents.Builder builderForValue) {
if (networkdataBuilder_ == null) {
networkdata_ = builderForValue.build();
} else {
networkdataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public Builder mergeNetworkdata(com.hedera.hashgraph.sdk.proto.FeeComponents value) {
if (networkdataBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
networkdata_ != null &&
networkdata_ != com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance()) {
getNetworkdataBuilder().mergeFrom(value);
} else {
networkdata_ = value;
}
} else {
networkdataBuilder_.mergeFrom(value);
}
if (networkdata_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public Builder clearNetworkdata() {
bitField0_ = (bitField0_ & ~0x00000002);
networkdata_ = null;
if (networkdataBuilder_ != null) {
networkdataBuilder_.dispose();
networkdataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public com.hedera.hashgraph.sdk.proto.FeeComponents.Builder getNetworkdataBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNetworkdataFieldBuilder().getBuilder();
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
public com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder getNetworkdataOrBuilder() {
if (networkdataBuilder_ != null) {
return networkdataBuilder_.getMessageOrBuilder();
} else {
return networkdata_ == null ?
com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance() : networkdata_;
}
}
/**
*
**
* Fee paid to the network for processing a transaction into consensus
*
*
* .proto.FeeComponents networkdata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder>
getNetworkdataFieldBuilder() {
if (networkdataBuilder_ == null) {
networkdataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder>(
getNetworkdata(),
getParentForChildren(),
isClean());
networkdata_ = null;
}
return networkdataBuilder_;
}
private com.hedera.hashgraph.sdk.proto.FeeComponents servicedata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.FeeComponents getServicedata() {
if (servicedataBuilder_ == null) {
return servicedata_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeComponents value) {
if (servicedataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
servicedata_ = value;
} else {
servicedataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
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.hedera.hashgraph.sdk.proto.FeeComponents.Builder builderForValue) {
if (servicedataBuilder_ == null) {
servicedata_ = builderForValue.build();
} else {
servicedataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
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.hedera.hashgraph.sdk.proto.FeeComponents value) {
if (servicedataBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
servicedata_ != null &&
servicedata_ != com.hedera.hashgraph.sdk.proto.FeeComponents.getDefaultInstance()) {
getServicedataBuilder().mergeFrom(value);
} else {
servicedata_ = value;
}
} else {
servicedataBuilder_.mergeFrom(value);
}
if (servicedata_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000004);
servicedata_ = null;
if (servicedataBuilder_ != null) {
servicedataBuilder_.dispose();
servicedataBuilder_ = null;
}
onChanged();
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.hedera.hashgraph.sdk.proto.FeeComponents.Builder getServicedataBuilder() {
bitField0_ |= 0x00000004;
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.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder getServicedataOrBuilder() {
if (servicedataBuilder_ != null) {
return servicedataBuilder_.getMessageOrBuilder();
} else {
return servicedata_ == null ?
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.FeeComponentsOrBuilder>
getServicedataFieldBuilder() {
if (servicedataBuilder_ == null) {
servicedataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeComponents, com.hedera.hashgraph.sdk.proto.FeeComponents.Builder, com.hedera.hashgraph.sdk.proto.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;
bitField0_ |= 0x00000008;
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.hedera.hashgraph.sdk.proto.SubType getSubType() {
com.hedera.hashgraph.sdk.proto.SubType result = com.hedera.hashgraph.sdk.proto.SubType.forNumber(subType_);
return result == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
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() {
bitField0_ = (bitField0_ & ~0x00000008);
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.hedera.hashgraph.sdk.proto.FeeData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FeeData();
}
public static com.hedera.hashgraph.sdk.proto.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 {
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.FeeData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}