com.hederahashgraph.api.proto.java.Transaction Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* A single signed transaction, including all its signatures. The SignatureList will have a
* Signature for each Key in the transaction, either explicit or implicit, in the order that they
* appear in the transaction. For example, a CryptoTransfer will first have a Signature
* corresponding to the Key for the paying account, followed by a Signature corresponding to the Key
* for each account that is sending or receiving cryptocurrency in the transfer. Each Transaction
* should not have more than 50 levels.
* The SignatureList field is deprecated and succeeded by SignatureMap.
*
*
* Protobuf type {@code proto.Transaction}
*/
public final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.Transaction)
TransactionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Transaction.newBuilder() to construct.
private Transaction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Transaction() {
bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
signedTransactionBytes_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Transaction();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Transaction(
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.TransactionBody.Builder subBuilder = null;
if (body_ != null) {
subBuilder = body_.toBuilder();
}
body_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionBody.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(body_);
body_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.SignatureList.Builder subBuilder = null;
if (sigs_ != null) {
subBuilder = sigs_.toBuilder();
}
sigs_ = input.readMessage(com.hederahashgraph.api.proto.java.SignatureList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sigs_);
sigs_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.hederahashgraph.api.proto.java.SignatureMap.Builder subBuilder = null;
if (sigMap_ != null) {
subBuilder = sigMap_.toBuilder();
}
sigMap_ = input.readMessage(com.hederahashgraph.api.proto.java.SignatureMap.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sigMap_);
sigMap_ = subBuilder.buildPartial();
}
break;
}
case 34: {
bodyBytes_ = input.readBytes();
break;
}
case 42: {
signedTransactionBytes_ = input.readBytes();
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.TransactionOuterClass.internal_static_proto_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TransactionOuterClass.internal_static_proto_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.Transaction.class, com.hederahashgraph.api.proto.java.Transaction.Builder.class);
}
public static final int BODY_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.TransactionBody body_;
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
* @return Whether the body field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBody() {
return body_ != null;
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
* @return The body.
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.TransactionBody getBody() {
return body_ == null ? com.hederahashgraph.api.proto.java.TransactionBody.getDefaultInstance() : body_;
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.TransactionBodyOrBuilder getBodyOrBuilder() {
return getBody();
}
public static final int SIGS_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.SignatureList sigs_;
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
* @return Whether the sigs field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasSigs() {
return sigs_ != null;
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
* @return The sigs.
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureList getSigs() {
return sigs_ == null ? com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance() : sigs_;
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSigsOrBuilder() {
return getSigs();
}
public static final int SIGMAP_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.SignatureMap sigMap_;
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
* @return Whether the sigMap field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasSigMap() {
return sigMap_ != null;
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
* @return The sigMap.
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureMap getSigMap() {
return sigMap_ == null ? com.hederahashgraph.api.proto.java.SignatureMap.getDefaultInstance() : sigMap_;
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureMapOrBuilder getSigMapOrBuilder() {
return getSigMap();
}
public static final int BODYBYTES_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString bodyBytes_;
/**
*
**
* TransactionBody serialized into bytes, which needs to be signed
*
*
* bytes bodyBytes = 4 [deprecated = true];
* @return The bodyBytes.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getBodyBytes() {
return bodyBytes_;
}
public static final int SIGNEDTRANSACTIONBYTES_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString signedTransactionBytes_;
/**
*
**
* SignedTransaction serialized into bytes
*
*
* bytes signedTransactionBytes = 5;
* @return The signedTransactionBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSignedTransactionBytes() {
return signedTransactionBytes_;
}
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 (body_ != null) {
output.writeMessage(1, getBody());
}
if (sigs_ != null) {
output.writeMessage(2, getSigs());
}
if (sigMap_ != null) {
output.writeMessage(3, getSigMap());
}
if (!bodyBytes_.isEmpty()) {
output.writeBytes(4, bodyBytes_);
}
if (!signedTransactionBytes_.isEmpty()) {
output.writeBytes(5, signedTransactionBytes_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (body_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBody());
}
if (sigs_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSigs());
}
if (sigMap_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSigMap());
}
if (!bodyBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, bodyBytes_);
}
if (!signedTransactionBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, signedTransactionBytes_);
}
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.Transaction)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.Transaction other = (com.hederahashgraph.api.proto.java.Transaction) obj;
if (hasBody() != other.hasBody()) return false;
if (hasBody()) {
if (!getBody()
.equals(other.getBody())) return false;
}
if (hasSigs() != other.hasSigs()) return false;
if (hasSigs()) {
if (!getSigs()
.equals(other.getSigs())) return false;
}
if (hasSigMap() != other.hasSigMap()) return false;
if (hasSigMap()) {
if (!getSigMap()
.equals(other.getSigMap())) return false;
}
if (!getBodyBytes()
.equals(other.getBodyBytes())) return false;
if (!getSignedTransactionBytes()
.equals(other.getSignedTransactionBytes())) 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 (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
}
if (hasSigs()) {
hash = (37 * hash) + SIGS_FIELD_NUMBER;
hash = (53 * hash) + getSigs().hashCode();
}
if (hasSigMap()) {
hash = (37 * hash) + SIGMAP_FIELD_NUMBER;
hash = (53 * hash) + getSigMap().hashCode();
}
hash = (37 * hash) + BODYBYTES_FIELD_NUMBER;
hash = (53 * hash) + getBodyBytes().hashCode();
hash = (37 * hash) + SIGNEDTRANSACTIONBYTES_FIELD_NUMBER;
hash = (53 * hash) + getSignedTransactionBytes().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.Transaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Transaction 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.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Transaction 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.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Transaction 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.Transaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.Transaction 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.Transaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.Transaction 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.Transaction 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.Transaction 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.Transaction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* A single signed transaction, including all its signatures. The SignatureList will have a
* Signature for each Key in the transaction, either explicit or implicit, in the order that they
* appear in the transaction. For example, a CryptoTransfer will first have a Signature
* corresponding to the Key for the paying account, followed by a Signature corresponding to the Key
* for each account that is sending or receiving cryptocurrency in the transfer. Each Transaction
* should not have more than 50 levels.
* The SignatureList field is deprecated and succeeded by SignatureMap.
*
*
* Protobuf type {@code proto.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.Transaction)
com.hederahashgraph.api.proto.java.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TransactionOuterClass.internal_static_proto_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TransactionOuterClass.internal_static_proto_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.Transaction.class, com.hederahashgraph.api.proto.java.Transaction.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.Transaction.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 (bodyBuilder_ == null) {
body_ = null;
} else {
body_ = null;
bodyBuilder_ = null;
}
if (sigsBuilder_ == null) {
sigs_ = null;
} else {
sigs_ = null;
sigsBuilder_ = null;
}
if (sigMapBuilder_ == null) {
sigMap_ = null;
} else {
sigMap_ = null;
sigMapBuilder_ = null;
}
bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
signedTransactionBytes_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.TransactionOuterClass.internal_static_proto_Transaction_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Transaction getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Transaction build() {
com.hederahashgraph.api.proto.java.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Transaction buildPartial() {
com.hederahashgraph.api.proto.java.Transaction result = new com.hederahashgraph.api.proto.java.Transaction(this);
if (bodyBuilder_ == null) {
result.body_ = body_;
} else {
result.body_ = bodyBuilder_.build();
}
if (sigsBuilder_ == null) {
result.sigs_ = sigs_;
} else {
result.sigs_ = sigsBuilder_.build();
}
if (sigMapBuilder_ == null) {
result.sigMap_ = sigMap_;
} else {
result.sigMap_ = sigMapBuilder_.build();
}
result.bodyBytes_ = bodyBytes_;
result.signedTransactionBytes_ = signedTransactionBytes_;
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.Transaction) {
return mergeFrom((com.hederahashgraph.api.proto.java.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.Transaction other) {
if (other == com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()) return this;
if (other.hasBody()) {
mergeBody(other.getBody());
}
if (other.hasSigs()) {
mergeSigs(other.getSigs());
}
if (other.hasSigMap()) {
mergeSigMap(other.getSigMap());
}
if (other.getBodyBytes() != com.google.protobuf.ByteString.EMPTY) {
setBodyBytes(other.getBodyBytes());
}
if (other.getSignedTransactionBytes() != com.google.protobuf.ByteString.EMPTY) {
setSignedTransactionBytes(other.getSignedTransactionBytes());
}
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.Transaction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.Transaction) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.hederahashgraph.api.proto.java.TransactionBody body_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionBody, com.hederahashgraph.api.proto.java.TransactionBody.Builder, com.hederahashgraph.api.proto.java.TransactionBodyOrBuilder> bodyBuilder_;
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
* @return Whether the body field is set.
*/
@java.lang.Deprecated public boolean hasBody() {
return bodyBuilder_ != null || body_ != null;
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
* @return The body.
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.TransactionBody getBody() {
if (bodyBuilder_ == null) {
return body_ == null ? com.hederahashgraph.api.proto.java.TransactionBody.getDefaultInstance() : body_;
} else {
return bodyBuilder_.getMessage();
}
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder setBody(com.hederahashgraph.api.proto.java.TransactionBody value) {
if (bodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
bodyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder setBody(
com.hederahashgraph.api.proto.java.TransactionBody.Builder builderForValue) {
if (bodyBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
bodyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeBody(com.hederahashgraph.api.proto.java.TransactionBody value) {
if (bodyBuilder_ == null) {
if (body_ != null) {
body_ =
com.hederahashgraph.api.proto.java.TransactionBody.newBuilder(body_).mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
bodyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearBody() {
if (bodyBuilder_ == null) {
body_ = null;
onChanged();
} else {
body_ = null;
bodyBuilder_ = null;
}
return this;
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.TransactionBody.Builder getBodyBuilder() {
onChanged();
return getBodyFieldBuilder().getBuilder();
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.TransactionBodyOrBuilder getBodyOrBuilder() {
if (bodyBuilder_ != null) {
return bodyBuilder_.getMessageOrBuilder();
} else {
return body_ == null ?
com.hederahashgraph.api.proto.java.TransactionBody.getDefaultInstance() : body_;
}
}
/**
*
**
* The body of the transaction, which needs to be signed
*
*
* .proto.TransactionBody body = 1 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionBody, com.hederahashgraph.api.proto.java.TransactionBody.Builder, com.hederahashgraph.api.proto.java.TransactionBodyOrBuilder>
getBodyFieldBuilder() {
if (bodyBuilder_ == null) {
bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionBody, com.hederahashgraph.api.proto.java.TransactionBody.Builder, com.hederahashgraph.api.proto.java.TransactionBodyOrBuilder>(
getBody(),
getParentForChildren(),
isClean());
body_ = null;
}
return bodyBuilder_;
}
private com.hederahashgraph.api.proto.java.SignatureList sigs_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder> sigsBuilder_;
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
* @return Whether the sigs field is set.
*/
@java.lang.Deprecated public boolean hasSigs() {
return sigsBuilder_ != null || sigs_ != null;
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
* @return The sigs.
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureList getSigs() {
if (sigsBuilder_ == null) {
return sigs_ == null ? com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance() : sigs_;
} else {
return sigsBuilder_.getMessage();
}
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setSigs(com.hederahashgraph.api.proto.java.SignatureList value) {
if (sigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sigs_ = value;
onChanged();
} else {
sigsBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setSigs(
com.hederahashgraph.api.proto.java.SignatureList.Builder builderForValue) {
if (sigsBuilder_ == null) {
sigs_ = builderForValue.build();
onChanged();
} else {
sigsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeSigs(com.hederahashgraph.api.proto.java.SignatureList value) {
if (sigsBuilder_ == null) {
if (sigs_ != null) {
sigs_ =
com.hederahashgraph.api.proto.java.SignatureList.newBuilder(sigs_).mergeFrom(value).buildPartial();
} else {
sigs_ = value;
}
onChanged();
} else {
sigsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearSigs() {
if (sigsBuilder_ == null) {
sigs_ = null;
onChanged();
} else {
sigs_ = null;
sigsBuilder_ = null;
}
return this;
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureList.Builder getSigsBuilder() {
onChanged();
return getSigsFieldBuilder().getBuilder();
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSigsOrBuilder() {
if (sigsBuilder_ != null) {
return sigsBuilder_.getMessageOrBuilder();
} else {
return sigs_ == null ?
com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance() : sigs_;
}
}
/**
*
**
* The signatures on the body, to authorize the transaction; deprecated and to be succeeded by
* SignatureMap field
*
*
* .proto.SignatureList sigs = 2 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder>
getSigsFieldBuilder() {
if (sigsBuilder_ == null) {
sigsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder>(
getSigs(),
getParentForChildren(),
isClean());
sigs_ = null;
}
return sigsBuilder_;
}
private com.hederahashgraph.api.proto.java.SignatureMap sigMap_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SignatureMap, com.hederahashgraph.api.proto.java.SignatureMap.Builder, com.hederahashgraph.api.proto.java.SignatureMapOrBuilder> sigMapBuilder_;
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
* @return Whether the sigMap field is set.
*/
@java.lang.Deprecated public boolean hasSigMap() {
return sigMapBuilder_ != null || sigMap_ != null;
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
* @return The sigMap.
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureMap getSigMap() {
if (sigMapBuilder_ == null) {
return sigMap_ == null ? com.hederahashgraph.api.proto.java.SignatureMap.getDefaultInstance() : sigMap_;
} else {
return sigMapBuilder_.getMessage();
}
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder setSigMap(com.hederahashgraph.api.proto.java.SignatureMap value) {
if (sigMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sigMap_ = value;
onChanged();
} else {
sigMapBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder setSigMap(
com.hederahashgraph.api.proto.java.SignatureMap.Builder builderForValue) {
if (sigMapBuilder_ == null) {
sigMap_ = builderForValue.build();
onChanged();
} else {
sigMapBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeSigMap(com.hederahashgraph.api.proto.java.SignatureMap value) {
if (sigMapBuilder_ == null) {
if (sigMap_ != null) {
sigMap_ =
com.hederahashgraph.api.proto.java.SignatureMap.newBuilder(sigMap_).mergeFrom(value).buildPartial();
} else {
sigMap_ = value;
}
onChanged();
} else {
sigMapBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearSigMap() {
if (sigMapBuilder_ == null) {
sigMap_ = null;
onChanged();
} else {
sigMap_ = null;
sigMapBuilder_ = null;
}
return this;
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureMap.Builder getSigMapBuilder() {
onChanged();
return getSigMapFieldBuilder().getBuilder();
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.SignatureMapOrBuilder getSigMapOrBuilder() {
if (sigMapBuilder_ != null) {
return sigMapBuilder_.getMessageOrBuilder();
} else {
return sigMap_ == null ?
com.hederahashgraph.api.proto.java.SignatureMap.getDefaultInstance() : sigMap_;
}
}
/**
*
**
* The signatures on the body with the new format, to authorize the transaction
*
*
* .proto.SignatureMap sigMap = 3 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SignatureMap, com.hederahashgraph.api.proto.java.SignatureMap.Builder, com.hederahashgraph.api.proto.java.SignatureMapOrBuilder>
getSigMapFieldBuilder() {
if (sigMapBuilder_ == null) {
sigMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SignatureMap, com.hederahashgraph.api.proto.java.SignatureMap.Builder, com.hederahashgraph.api.proto.java.SignatureMapOrBuilder>(
getSigMap(),
getParentForChildren(),
isClean());
sigMap_ = null;
}
return sigMapBuilder_;
}
private com.google.protobuf.ByteString bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* TransactionBody serialized into bytes, which needs to be signed
*
*
* bytes bodyBytes = 4 [deprecated = true];
* @return The bodyBytes.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getBodyBytes() {
return bodyBytes_;
}
/**
*
**
* TransactionBody serialized into bytes, which needs to be signed
*
*
* bytes bodyBytes = 4 [deprecated = true];
* @param value The bodyBytes to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setBodyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bodyBytes_ = value;
onChanged();
return this;
}
/**
*
**
* TransactionBody serialized into bytes, which needs to be signed
*
*
* bytes bodyBytes = 4 [deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearBodyBytes() {
bodyBytes_ = getDefaultInstance().getBodyBytes();
onChanged();
return this;
}
private com.google.protobuf.ByteString signedTransactionBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* SignedTransaction serialized into bytes
*
*
* bytes signedTransactionBytes = 5;
* @return The signedTransactionBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSignedTransactionBytes() {
return signedTransactionBytes_;
}
/**
*
**
* SignedTransaction serialized into bytes
*
*
* bytes signedTransactionBytes = 5;
* @param value The signedTransactionBytes to set.
* @return This builder for chaining.
*/
public Builder setSignedTransactionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signedTransactionBytes_ = value;
onChanged();
return this;
}
/**
*
**
* SignedTransaction serialized into bytes
*
*
* bytes signedTransactionBytes = 5;
* @return This builder for chaining.
*/
public Builder clearSignedTransactionBytes() {
signedTransactionBytes_ = getDefaultInstance().getSignedTransactionBytes();
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.Transaction)
}
// @@protoc_insertion_point(class_scope:proto.Transaction)
private static final com.hederahashgraph.api.proto.java.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Transaction();
}
public static com.hederahashgraph.api.proto.java.Transaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Transaction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Transaction(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.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy