Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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];
* @deprecated
* @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
*
**
* 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];
* @deprecated
* @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.
*