Please wait. This can take some minutes ...
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.
main.org.onflow.protobuf.legacy.entities.TransactionOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flow/legacy/entities/transaction.proto
package org.onflow.protobuf.legacy.entities;
public final class TransactionOuterClass {
private TransactionOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code entities.TransactionStatus}
*/
public enum TransactionStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* PENDING = 1;
*/
PENDING(1),
/**
* FINALIZED = 2;
*/
FINALIZED(2),
/**
* EXECUTED = 3;
*/
EXECUTED(3),
/**
* SEALED = 4;
*/
SEALED(4),
/**
* EXPIRED = 5;
*/
EXPIRED(5),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* PENDING = 1;
*/
public static final int PENDING_VALUE = 1;
/**
* FINALIZED = 2;
*/
public static final int FINALIZED_VALUE = 2;
/**
* EXECUTED = 3;
*/
public static final int EXECUTED_VALUE = 3;
/**
* SEALED = 4;
*/
public static final int SEALED_VALUE = 4;
/**
* EXPIRED = 5;
*/
public static final int EXPIRED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TransactionStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TransactionStatus forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return PENDING;
case 2: return FINALIZED;
case 3: return EXECUTED;
case 4: return SEALED;
case 5: return EXPIRED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TransactionStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TransactionStatus findValueByNumber(int number) {
return TransactionStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final TransactionStatus[] VALUES = values();
public static TransactionStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TransactionStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:entities.TransactionStatus)
}
public interface TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:entities.Transaction)
com.google.protobuf.MessageOrBuilder {
/**
* bytes script = 1;
* @return The script.
*/
com.google.protobuf.ByteString getScript();
/**
* repeated bytes arguments = 2;
* @return A list containing the arguments.
*/
java.util.List getArgumentsList();
/**
* repeated bytes arguments = 2;
* @return The count of arguments.
*/
int getArgumentsCount();
/**
* repeated bytes arguments = 2;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
com.google.protobuf.ByteString getArguments(int index);
/**
* bytes reference_block_id = 3;
* @return The referenceBlockId.
*/
com.google.protobuf.ByteString getReferenceBlockId();
/**
* uint64 gas_limit = 4;
* @return The gasLimit.
*/
long getGasLimit();
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
* @return Whether the proposalKey field is set.
*/
boolean hasProposalKey();
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
* @return The proposalKey.
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey getProposalKey();
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKeyOrBuilder getProposalKeyOrBuilder();
/**
* bytes payer = 6;
* @return The payer.
*/
com.google.protobuf.ByteString getPayer();
/**
* repeated bytes authorizers = 7;
* @return A list containing the authorizers.
*/
java.util.List getAuthorizersList();
/**
* repeated bytes authorizers = 7;
* @return The count of authorizers.
*/
int getAuthorizersCount();
/**
* repeated bytes authorizers = 7;
* @param index The index of the element to return.
* @return The authorizers at the given index.
*/
com.google.protobuf.ByteString getAuthorizers(int index);
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
java.util.List
getPayloadSignaturesList();
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getPayloadSignatures(int index);
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
int getPayloadSignaturesCount();
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
java.util.List extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getPayloadSignaturesOrBuilderList();
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder getPayloadSignaturesOrBuilder(
int index);
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
java.util.List
getEnvelopeSignaturesList();
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getEnvelopeSignatures(int index);
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
int getEnvelopeSignaturesCount();
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
java.util.List extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getEnvelopeSignaturesOrBuilderList();
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder getEnvelopeSignaturesOrBuilder(
int index);
}
/**
* Protobuf type {@code entities.Transaction}
*/
public static final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:entities.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() {
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
referenceBlockId_ = com.google.protobuf.ByteString.EMPTY;
payer_ = com.google.protobuf.ByteString.EMPTY;
authorizers_ = java.util.Collections.emptyList();
payloadSignatures_ = java.util.Collections.emptyList();
envelopeSignatures_ = java.util.Collections.emptyList();
}
@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();
}
int mutable_bitField0_ = 0;
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: {
script_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
arguments_.add(input.readBytes());
break;
}
case 26: {
referenceBlockId_ = input.readBytes();
break;
}
case 32: {
gasLimit_ = input.readUInt64();
break;
}
case 42: {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder subBuilder = null;
if (proposalKey_ != null) {
subBuilder = proposalKey_.toBuilder();
}
proposalKey_ = input.readMessage(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proposalKey_);
proposalKey_ = subBuilder.buildPartial();
}
break;
}
case 50: {
payer_ = input.readBytes();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
authorizers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
authorizers_.add(input.readBytes());
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
payloadSignatures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
payloadSignatures_.add(
input.readMessage(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.parser(), extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
envelopeSignatures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
envelopeSignatures_.add(
input.readMessage(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
authorizers_ = java.util.Collections.unmodifiableList(authorizers_); // C
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
payloadSignatures_ = java.util.Collections.unmodifiableList(payloadSignatures_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
envelopeSignatures_ = java.util.Collections.unmodifiableList(envelopeSignatures_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.class, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder.class);
}
public interface ProposalKeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:entities.Transaction.ProposalKey)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* uint32 key_id = 2;
* @return The keyId.
*/
int getKeyId();
/**
* uint64 sequence_number = 3;
* @return The sequenceNumber.
*/
long getSequenceNumber();
}
/**
* Protobuf type {@code entities.Transaction.ProposalKey}
*/
public static final class ProposalKey extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:entities.Transaction.ProposalKey)
ProposalKeyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProposalKey.newBuilder() to construct.
private ProposalKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProposalKey() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProposalKey();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProposalKey(
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: {
address_ = input.readBytes();
break;
}
case 16: {
keyId_ = input.readUInt32();
break;
}
case 24: {
sequenceNumber_ = input.readUInt64();
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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_ProposalKey_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_ProposalKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.class, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int KEY_ID_FIELD_NUMBER = 2;
private int keyId_;
/**
* uint32 key_id = 2;
* @return The keyId.
*/
@java.lang.Override
public int getKeyId() {
return keyId_;
}
public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 3;
private long sequenceNumber_;
/**
* uint64 sequence_number = 3;
* @return The sequenceNumber.
*/
@java.lang.Override
public long getSequenceNumber() {
return sequenceNumber_;
}
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 (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
if (keyId_ != 0) {
output.writeUInt32(2, keyId_);
}
if (sequenceNumber_ != 0L) {
output.writeUInt64(3, sequenceNumber_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (keyId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, keyId_);
}
if (sequenceNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, sequenceNumber_);
}
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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey other = (org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getKeyId()
!= other.getKeyId()) return false;
if (getSequenceNumber()
!= other.getSequenceNumber()) 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();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId();
hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequenceNumber());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey 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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey 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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey 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(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey 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;
}
/**
* Protobuf type {@code entities.Transaction.ProposalKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:entities.Transaction.ProposalKey)
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_ProposalKey_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_ProposalKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.class, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.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();
address_ = com.google.protobuf.ByteString.EMPTY;
keyId_ = 0;
sequenceNumber_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_ProposalKey_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey build() {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey buildPartial() {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey result = new org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey(this);
result.address_ = address_;
result.keyId_ = keyId_;
result.sequenceNumber_ = sequenceNumber_;
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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey) {
return mergeFrom((org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey other) {
if (other == org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getKeyId() != 0) {
setKeyId(other.getKeyId());
}
if (other.getSequenceNumber() != 0L) {
setSequenceNumber(other.getSequenceNumber());
}
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 {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private int keyId_ ;
/**
* uint32 key_id = 2;
* @return The keyId.
*/
@java.lang.Override
public int getKeyId() {
return keyId_;
}
/**
* uint32 key_id = 2;
* @param value The keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyId(int value) {
keyId_ = value;
onChanged();
return this;
}
/**
* uint32 key_id = 2;
* @return This builder for chaining.
*/
public Builder clearKeyId() {
keyId_ = 0;
onChanged();
return this;
}
private long sequenceNumber_ ;
/**
* uint64 sequence_number = 3;
* @return The sequenceNumber.
*/
@java.lang.Override
public long getSequenceNumber() {
return sequenceNumber_;
}
/**
* uint64 sequence_number = 3;
* @param value The sequenceNumber to set.
* @return This builder for chaining.
*/
public Builder setSequenceNumber(long value) {
sequenceNumber_ = value;
onChanged();
return this;
}
/**
* uint64 sequence_number = 3;
* @return This builder for chaining.
*/
public Builder clearSequenceNumber() {
sequenceNumber_ = 0L;
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:entities.Transaction.ProposalKey)
}
// @@protoc_insertion_point(class_scope:entities.Transaction.ProposalKey)
private static final org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey();
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProposalKey parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProposalKey(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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:entities.Transaction.Signature)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* uint32 key_id = 2;
* @return The keyId.
*/
int getKeyId();
/**
* bytes signature = 3;
* @return The signature.
*/
com.google.protobuf.ByteString getSignature();
}
/**
* Protobuf type {@code entities.Transaction.Signature}
*/
public static final class Signature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:entities.Transaction.Signature)
SignatureOrBuilder {
private static final long serialVersionUID = 0L;
// Use Signature.newBuilder() to construct.
private Signature(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Signature() {
address_ = com.google.protobuf.ByteString.EMPTY;
signature_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Signature();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Signature(
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: {
address_ = input.readBytes();
break;
}
case 16: {
keyId_ = input.readUInt32();
break;
}
case 26: {
signature_ = 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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_Signature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_Signature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.class, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int KEY_ID_FIELD_NUMBER = 2;
private int keyId_;
/**
* uint32 key_id = 2;
* @return The keyId.
*/
@java.lang.Override
public int getKeyId() {
return keyId_;
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString signature_;
/**
* bytes signature = 3;
* @return The signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
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 (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
if (keyId_ != 0) {
output.writeUInt32(2, keyId_);
}
if (!signature_.isEmpty()) {
output.writeBytes(3, signature_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (keyId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, keyId_);
}
if (!signature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, signature_);
}
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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature other = (org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getKeyId()
!= other.getKeyId()) return false;
if (!getSignature()
.equals(other.getSignature())) 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();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId();
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature 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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature 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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature 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(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature 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;
}
/**
* Protobuf type {@code entities.Transaction.Signature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:entities.Transaction.Signature)
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_Signature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_Signature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.class, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.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();
address_ = com.google.protobuf.ByteString.EMPTY;
keyId_ = 0;
signature_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_Signature_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature build() {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature buildPartial() {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature result = new org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature(this);
result.address_ = address_;
result.keyId_ = keyId_;
result.signature_ = signature_;
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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature) {
return mergeFrom((org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature other) {
if (other == org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getKeyId() != 0) {
setKeyId(other.getKeyId());
}
if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) {
setSignature(other.getSignature());
}
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 {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private int keyId_ ;
/**
* uint32 key_id = 2;
* @return The keyId.
*/
@java.lang.Override
public int getKeyId() {
return keyId_;
}
/**
* uint32 key_id = 2;
* @param value The keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyId(int value) {
keyId_ = value;
onChanged();
return this;
}
/**
* uint32 key_id = 2;
* @return This builder for chaining.
*/
public Builder clearKeyId() {
keyId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes signature = 3;
* @return The signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
/**
* bytes signature = 3;
* @param value The signature to set.
* @return This builder for chaining.
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
* bytes signature = 3;
* @return This builder for chaining.
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
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:entities.Transaction.Signature)
}
// @@protoc_insertion_point(class_scope:entities.Transaction.Signature)
private static final org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature();
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Signature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Signature(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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int SCRIPT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString script_;
/**
* bytes script = 1;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
public static final int ARGUMENTS_FIELD_NUMBER = 2;
private java.util.List arguments_;
/**
* repeated bytes arguments = 2;
* @return A list containing the arguments.
*/
@java.lang.Override
public java.util.List
getArgumentsList() {
return arguments_;
}
/**
* repeated bytes arguments = 2;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 2;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.get(index);
}
public static final int REFERENCE_BLOCK_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString referenceBlockId_;
/**
* bytes reference_block_id = 3;
* @return The referenceBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getReferenceBlockId() {
return referenceBlockId_;
}
public static final int GAS_LIMIT_FIELD_NUMBER = 4;
private long gasLimit_;
/**
* uint64 gas_limit = 4;
* @return The gasLimit.
*/
@java.lang.Override
public long getGasLimit() {
return gasLimit_;
}
public static final int PROPOSAL_KEY_FIELD_NUMBER = 5;
private org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey proposalKey_;
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
* @return Whether the proposalKey field is set.
*/
@java.lang.Override
public boolean hasProposalKey() {
return proposalKey_ != null;
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
* @return The proposalKey.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey getProposalKey() {
return proposalKey_ == null ? org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.getDefaultInstance() : proposalKey_;
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKeyOrBuilder getProposalKeyOrBuilder() {
return getProposalKey();
}
public static final int PAYER_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString payer_;
/**
* bytes payer = 6;
* @return The payer.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayer() {
return payer_;
}
public static final int AUTHORIZERS_FIELD_NUMBER = 7;
private java.util.List authorizers_;
/**
* repeated bytes authorizers = 7;
* @return A list containing the authorizers.
*/
@java.lang.Override
public java.util.List
getAuthorizersList() {
return authorizers_;
}
/**
* repeated bytes authorizers = 7;
* @return The count of authorizers.
*/
public int getAuthorizersCount() {
return authorizers_.size();
}
/**
* repeated bytes authorizers = 7;
* @param index The index of the element to return.
* @return The authorizers at the given index.
*/
public com.google.protobuf.ByteString getAuthorizers(int index) {
return authorizers_.get(index);
}
public static final int PAYLOAD_SIGNATURES_FIELD_NUMBER = 8;
private java.util.List payloadSignatures_;
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
@java.lang.Override
public java.util.List getPayloadSignaturesList() {
return payloadSignatures_;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getPayloadSignaturesOrBuilderList() {
return payloadSignatures_;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
@java.lang.Override
public int getPayloadSignaturesCount() {
return payloadSignatures_.size();
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getPayloadSignatures(int index) {
return payloadSignatures_.get(index);
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder getPayloadSignaturesOrBuilder(
int index) {
return payloadSignatures_.get(index);
}
public static final int ENVELOPE_SIGNATURES_FIELD_NUMBER = 9;
private java.util.List envelopeSignatures_;
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
@java.lang.Override
public java.util.List getEnvelopeSignaturesList() {
return envelopeSignatures_;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getEnvelopeSignaturesOrBuilderList() {
return envelopeSignatures_;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
@java.lang.Override
public int getEnvelopeSignaturesCount() {
return envelopeSignatures_.size();
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getEnvelopeSignatures(int index) {
return envelopeSignatures_.get(index);
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder getEnvelopeSignaturesOrBuilder(
int index) {
return envelopeSignatures_.get(index);
}
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 (!script_.isEmpty()) {
output.writeBytes(1, script_);
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeBytes(2, arguments_.get(i));
}
if (!referenceBlockId_.isEmpty()) {
output.writeBytes(3, referenceBlockId_);
}
if (gasLimit_ != 0L) {
output.writeUInt64(4, gasLimit_);
}
if (proposalKey_ != null) {
output.writeMessage(5, getProposalKey());
}
if (!payer_.isEmpty()) {
output.writeBytes(6, payer_);
}
for (int i = 0; i < authorizers_.size(); i++) {
output.writeBytes(7, authorizers_.get(i));
}
for (int i = 0; i < payloadSignatures_.size(); i++) {
output.writeMessage(8, payloadSignatures_.get(i));
}
for (int i = 0; i < envelopeSignatures_.size(); i++) {
output.writeMessage(9, envelopeSignatures_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!script_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, script_);
}
{
int dataSize = 0;
for (int i = 0; i < arguments_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(arguments_.get(i));
}
size += dataSize;
size += 1 * getArgumentsList().size();
}
if (!referenceBlockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, referenceBlockId_);
}
if (gasLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, gasLimit_);
}
if (proposalKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getProposalKey());
}
if (!payer_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, payer_);
}
{
int dataSize = 0;
for (int i = 0; i < authorizers_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(authorizers_.get(i));
}
size += dataSize;
size += 1 * getAuthorizersList().size();
}
for (int i = 0; i < payloadSignatures_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, payloadSignatures_.get(i));
}
for (int i = 0; i < envelopeSignatures_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, envelopeSignatures_.get(i));
}
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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction other = (org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction) obj;
if (!getScript()
.equals(other.getScript())) return false;
if (!getArgumentsList()
.equals(other.getArgumentsList())) return false;
if (!getReferenceBlockId()
.equals(other.getReferenceBlockId())) return false;
if (getGasLimit()
!= other.getGasLimit()) return false;
if (hasProposalKey() != other.hasProposalKey()) return false;
if (hasProposalKey()) {
if (!getProposalKey()
.equals(other.getProposalKey())) return false;
}
if (!getPayer()
.equals(other.getPayer())) return false;
if (!getAuthorizersList()
.equals(other.getAuthorizersList())) return false;
if (!getPayloadSignaturesList()
.equals(other.getPayloadSignaturesList())) return false;
if (!getEnvelopeSignaturesList()
.equals(other.getEnvelopeSignaturesList())) 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();
hash = (37 * hash) + SCRIPT_FIELD_NUMBER;
hash = (53 * hash) + getScript().hashCode();
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
hash = (37 * hash) + REFERENCE_BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getReferenceBlockId().hashCode();
hash = (37 * hash) + GAS_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasLimit());
if (hasProposalKey()) {
hash = (37 * hash) + PROPOSAL_KEY_FIELD_NUMBER;
hash = (53 * hash) + getProposalKey().hashCode();
}
hash = (37 * hash) + PAYER_FIELD_NUMBER;
hash = (53 * hash) + getPayer().hashCode();
if (getAuthorizersCount() > 0) {
hash = (37 * hash) + AUTHORIZERS_FIELD_NUMBER;
hash = (53 * hash) + getAuthorizersList().hashCode();
}
if (getPayloadSignaturesCount() > 0) {
hash = (37 * hash) + PAYLOAD_SIGNATURES_FIELD_NUMBER;
hash = (53 * hash) + getPayloadSignaturesList().hashCode();
}
if (getEnvelopeSignaturesCount() > 0) {
hash = (37 * hash) + ENVELOPE_SIGNATURES_FIELD_NUMBER;
hash = (53 * hash) + getEnvelopeSignaturesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.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(org.onflow.protobuf.legacy.entities.TransactionOuterClass.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;
}
/**
* Protobuf type {@code entities.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:entities.Transaction)
org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.class, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.entities.TransactionOuterClass.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) {
getPayloadSignaturesFieldBuilder();
getEnvelopeSignaturesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
referenceBlockId_ = com.google.protobuf.ByteString.EMPTY;
gasLimit_ = 0L;
if (proposalKeyBuilder_ == null) {
proposalKey_ = null;
} else {
proposalKey_ = null;
proposalKeyBuilder_ = null;
}
payer_ = com.google.protobuf.ByteString.EMPTY;
authorizers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
if (payloadSignaturesBuilder_ == null) {
payloadSignatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
payloadSignaturesBuilder_.clear();
}
if (envelopeSignaturesBuilder_ == null) {
envelopeSignatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
envelopeSignaturesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.internal_static_entities_Transaction_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction build() {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction buildPartial() {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction result = new org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction(this);
int from_bitField0_ = bitField0_;
result.script_ = script_;
if (((bitField0_ & 0x00000001) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.arguments_ = arguments_;
result.referenceBlockId_ = referenceBlockId_;
result.gasLimit_ = gasLimit_;
if (proposalKeyBuilder_ == null) {
result.proposalKey_ = proposalKey_;
} else {
result.proposalKey_ = proposalKeyBuilder_.build();
}
result.payer_ = payer_;
if (((bitField0_ & 0x00000002) != 0)) {
authorizers_ = java.util.Collections.unmodifiableList(authorizers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.authorizers_ = authorizers_;
if (payloadSignaturesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
payloadSignatures_ = java.util.Collections.unmodifiableList(payloadSignatures_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.payloadSignatures_ = payloadSignatures_;
} else {
result.payloadSignatures_ = payloadSignaturesBuilder_.build();
}
if (envelopeSignaturesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
envelopeSignatures_ = java.util.Collections.unmodifiableList(envelopeSignatures_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.envelopeSignatures_ = envelopeSignatures_;
} else {
result.envelopeSignatures_ = envelopeSignaturesBuilder_.build();
}
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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction) {
return mergeFrom((org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction other) {
if (other == org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance()) return this;
if (other.getScript() != com.google.protobuf.ByteString.EMPTY) {
setScript(other.getScript());
}
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
onChanged();
}
if (other.getReferenceBlockId() != com.google.protobuf.ByteString.EMPTY) {
setReferenceBlockId(other.getReferenceBlockId());
}
if (other.getGasLimit() != 0L) {
setGasLimit(other.getGasLimit());
}
if (other.hasProposalKey()) {
mergeProposalKey(other.getProposalKey());
}
if (other.getPayer() != com.google.protobuf.ByteString.EMPTY) {
setPayer(other.getPayer());
}
if (!other.authorizers_.isEmpty()) {
if (authorizers_.isEmpty()) {
authorizers_ = other.authorizers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAuthorizersIsMutable();
authorizers_.addAll(other.authorizers_);
}
onChanged();
}
if (payloadSignaturesBuilder_ == null) {
if (!other.payloadSignatures_.isEmpty()) {
if (payloadSignatures_.isEmpty()) {
payloadSignatures_ = other.payloadSignatures_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePayloadSignaturesIsMutable();
payloadSignatures_.addAll(other.payloadSignatures_);
}
onChanged();
}
} else {
if (!other.payloadSignatures_.isEmpty()) {
if (payloadSignaturesBuilder_.isEmpty()) {
payloadSignaturesBuilder_.dispose();
payloadSignaturesBuilder_ = null;
payloadSignatures_ = other.payloadSignatures_;
bitField0_ = (bitField0_ & ~0x00000004);
payloadSignaturesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPayloadSignaturesFieldBuilder() : null;
} else {
payloadSignaturesBuilder_.addAllMessages(other.payloadSignatures_);
}
}
}
if (envelopeSignaturesBuilder_ == null) {
if (!other.envelopeSignatures_.isEmpty()) {
if (envelopeSignatures_.isEmpty()) {
envelopeSignatures_ = other.envelopeSignatures_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.addAll(other.envelopeSignatures_);
}
onChanged();
}
} else {
if (!other.envelopeSignatures_.isEmpty()) {
if (envelopeSignaturesBuilder_.isEmpty()) {
envelopeSignaturesBuilder_.dispose();
envelopeSignaturesBuilder_ = null;
envelopeSignatures_ = other.envelopeSignatures_;
bitField0_ = (bitField0_ & ~0x00000008);
envelopeSignaturesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnvelopeSignaturesFieldBuilder() : null;
} else {
envelopeSignaturesBuilder_.addAllMessages(other.envelopeSignatures_);
}
}
}
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 {
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script = 1;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
/**
* bytes script = 1;
* @param value The script to set.
* @return This builder for chaining.
*/
public Builder setScript(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
script_ = value;
onChanged();
return this;
}
/**
* bytes script = 1;
* @return This builder for chaining.
*/
public Builder clearScript() {
script_ = getDefaultInstance().getScript();
onChanged();
return this;
}
private java.util.List arguments_ = java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes arguments = 2;
* @return A list containing the arguments.
*/
public java.util.List
getArgumentsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(arguments_) : arguments_;
}
/**
* repeated bytes arguments = 2;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 2;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.get(index);
}
/**
* repeated bytes arguments = 2;
* @param index The index to set the value at.
* @param value The arguments to set.
* @return This builder for chaining.
*/
public Builder setArguments(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 2;
* @param value The arguments to add.
* @return This builder for chaining.
*/
public Builder addArguments(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 2;
* @param values The arguments to add.
* @return This builder for chaining.
*/
public Builder addAllArguments(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
return this;
}
/**
* repeated bytes arguments = 2;
* @return This builder for chaining.
*/
public Builder clearArguments() {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.ByteString referenceBlockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes reference_block_id = 3;
* @return The referenceBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getReferenceBlockId() {
return referenceBlockId_;
}
/**
* bytes reference_block_id = 3;
* @param value The referenceBlockId to set.
* @return This builder for chaining.
*/
public Builder setReferenceBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
referenceBlockId_ = value;
onChanged();
return this;
}
/**
* bytes reference_block_id = 3;
* @return This builder for chaining.
*/
public Builder clearReferenceBlockId() {
referenceBlockId_ = getDefaultInstance().getReferenceBlockId();
onChanged();
return this;
}
private long gasLimit_ ;
/**
* uint64 gas_limit = 4;
* @return The gasLimit.
*/
@java.lang.Override
public long getGasLimit() {
return gasLimit_;
}
/**
* uint64 gas_limit = 4;
* @param value The gasLimit to set.
* @return This builder for chaining.
*/
public Builder setGasLimit(long value) {
gasLimit_ = value;
onChanged();
return this;
}
/**
* uint64 gas_limit = 4;
* @return This builder for chaining.
*/
public Builder clearGasLimit() {
gasLimit_ = 0L;
onChanged();
return this;
}
private org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey proposalKey_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKeyOrBuilder> proposalKeyBuilder_;
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
* @return Whether the proposalKey field is set.
*/
public boolean hasProposalKey() {
return proposalKeyBuilder_ != null || proposalKey_ != null;
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
* @return The proposalKey.
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey getProposalKey() {
if (proposalKeyBuilder_ == null) {
return proposalKey_ == null ? org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.getDefaultInstance() : proposalKey_;
} else {
return proposalKeyBuilder_.getMessage();
}
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
public Builder setProposalKey(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey value) {
if (proposalKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proposalKey_ = value;
onChanged();
} else {
proposalKeyBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
public Builder setProposalKey(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder builderForValue) {
if (proposalKeyBuilder_ == null) {
proposalKey_ = builderForValue.build();
onChanged();
} else {
proposalKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
public Builder mergeProposalKey(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey value) {
if (proposalKeyBuilder_ == null) {
if (proposalKey_ != null) {
proposalKey_ =
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.newBuilder(proposalKey_).mergeFrom(value).buildPartial();
} else {
proposalKey_ = value;
}
onChanged();
} else {
proposalKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
public Builder clearProposalKey() {
if (proposalKeyBuilder_ == null) {
proposalKey_ = null;
onChanged();
} else {
proposalKey_ = null;
proposalKeyBuilder_ = null;
}
return this;
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder getProposalKeyBuilder() {
onChanged();
return getProposalKeyFieldBuilder().getBuilder();
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKeyOrBuilder getProposalKeyOrBuilder() {
if (proposalKeyBuilder_ != null) {
return proposalKeyBuilder_.getMessageOrBuilder();
} else {
return proposalKey_ == null ?
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.getDefaultInstance() : proposalKey_;
}
}
/**
* .entities.Transaction.ProposalKey proposal_key = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKeyOrBuilder>
getProposalKeyFieldBuilder() {
if (proposalKeyBuilder_ == null) {
proposalKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKey.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.ProposalKeyOrBuilder>(
getProposalKey(),
getParentForChildren(),
isClean());
proposalKey_ = null;
}
return proposalKeyBuilder_;
}
private com.google.protobuf.ByteString payer_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes payer = 6;
* @return The payer.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayer() {
return payer_;
}
/**
* bytes payer = 6;
* @param value The payer to set.
* @return This builder for chaining.
*/
public Builder setPayer(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
payer_ = value;
onChanged();
return this;
}
/**
* bytes payer = 6;
* @return This builder for chaining.
*/
public Builder clearPayer() {
payer_ = getDefaultInstance().getPayer();
onChanged();
return this;
}
private java.util.List authorizers_ = java.util.Collections.emptyList();
private void ensureAuthorizersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
authorizers_ = new java.util.ArrayList(authorizers_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated bytes authorizers = 7;
* @return A list containing the authorizers.
*/
public java.util.List
getAuthorizersList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(authorizers_) : authorizers_;
}
/**
* repeated bytes authorizers = 7;
* @return The count of authorizers.
*/
public int getAuthorizersCount() {
return authorizers_.size();
}
/**
* repeated bytes authorizers = 7;
* @param index The index of the element to return.
* @return The authorizers at the given index.
*/
public com.google.protobuf.ByteString getAuthorizers(int index) {
return authorizers_.get(index);
}
/**
* repeated bytes authorizers = 7;
* @param index The index to set the value at.
* @param value The authorizers to set.
* @return This builder for chaining.
*/
public Builder setAuthorizers(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorizersIsMutable();
authorizers_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes authorizers = 7;
* @param value The authorizers to add.
* @return This builder for chaining.
*/
public Builder addAuthorizers(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorizersIsMutable();
authorizers_.add(value);
onChanged();
return this;
}
/**
* repeated bytes authorizers = 7;
* @param values The authorizers to add.
* @return This builder for chaining.
*/
public Builder addAllAuthorizers(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureAuthorizersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, authorizers_);
onChanged();
return this;
}
/**
* repeated bytes authorizers = 7;
* @return This builder for chaining.
*/
public Builder clearAuthorizers() {
authorizers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List payloadSignatures_ =
java.util.Collections.emptyList();
private void ensurePayloadSignaturesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
payloadSignatures_ = new java.util.ArrayList(payloadSignatures_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder> payloadSignaturesBuilder_;
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public java.util.List getPayloadSignaturesList() {
if (payloadSignaturesBuilder_ == null) {
return java.util.Collections.unmodifiableList(payloadSignatures_);
} else {
return payloadSignaturesBuilder_.getMessageList();
}
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public int getPayloadSignaturesCount() {
if (payloadSignaturesBuilder_ == null) {
return payloadSignatures_.size();
} else {
return payloadSignaturesBuilder_.getCount();
}
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getPayloadSignatures(int index) {
if (payloadSignaturesBuilder_ == null) {
return payloadSignatures_.get(index);
} else {
return payloadSignaturesBuilder_.getMessage(index);
}
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder setPayloadSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature value) {
if (payloadSignaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadSignaturesIsMutable();
payloadSignatures_.set(index, value);
onChanged();
} else {
payloadSignaturesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder setPayloadSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder builderForValue) {
if (payloadSignaturesBuilder_ == null) {
ensurePayloadSignaturesIsMutable();
payloadSignatures_.set(index, builderForValue.build());
onChanged();
} else {
payloadSignaturesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder addPayloadSignatures(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature value) {
if (payloadSignaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadSignaturesIsMutable();
payloadSignatures_.add(value);
onChanged();
} else {
payloadSignaturesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder addPayloadSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature value) {
if (payloadSignaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadSignaturesIsMutable();
payloadSignatures_.add(index, value);
onChanged();
} else {
payloadSignaturesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder addPayloadSignatures(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder builderForValue) {
if (payloadSignaturesBuilder_ == null) {
ensurePayloadSignaturesIsMutable();
payloadSignatures_.add(builderForValue.build());
onChanged();
} else {
payloadSignaturesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder addPayloadSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder builderForValue) {
if (payloadSignaturesBuilder_ == null) {
ensurePayloadSignaturesIsMutable();
payloadSignatures_.add(index, builderForValue.build());
onChanged();
} else {
payloadSignaturesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder addAllPayloadSignatures(
java.lang.Iterable extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature> values) {
if (payloadSignaturesBuilder_ == null) {
ensurePayloadSignaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, payloadSignatures_);
onChanged();
} else {
payloadSignaturesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder clearPayloadSignatures() {
if (payloadSignaturesBuilder_ == null) {
payloadSignatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
payloadSignaturesBuilder_.clear();
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public Builder removePayloadSignatures(int index) {
if (payloadSignaturesBuilder_ == null) {
ensurePayloadSignaturesIsMutable();
payloadSignatures_.remove(index);
onChanged();
} else {
payloadSignaturesBuilder_.remove(index);
}
return this;
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder getPayloadSignaturesBuilder(
int index) {
return getPayloadSignaturesFieldBuilder().getBuilder(index);
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder getPayloadSignaturesOrBuilder(
int index) {
if (payloadSignaturesBuilder_ == null) {
return payloadSignatures_.get(index); } else {
return payloadSignaturesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public java.util.List extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getPayloadSignaturesOrBuilderList() {
if (payloadSignaturesBuilder_ != null) {
return payloadSignaturesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(payloadSignatures_);
}
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder addPayloadSignaturesBuilder() {
return getPayloadSignaturesFieldBuilder().addBuilder(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.getDefaultInstance());
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder addPayloadSignaturesBuilder(
int index) {
return getPayloadSignaturesFieldBuilder().addBuilder(
index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.getDefaultInstance());
}
/**
* repeated .entities.Transaction.Signature payload_signatures = 8;
*/
public java.util.List
getPayloadSignaturesBuilderList() {
return getPayloadSignaturesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getPayloadSignaturesFieldBuilder() {
if (payloadSignaturesBuilder_ == null) {
payloadSignaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>(
payloadSignatures_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
payloadSignatures_ = null;
}
return payloadSignaturesBuilder_;
}
private java.util.List envelopeSignatures_ =
java.util.Collections.emptyList();
private void ensureEnvelopeSignaturesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
envelopeSignatures_ = new java.util.ArrayList(envelopeSignatures_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder> envelopeSignaturesBuilder_;
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public java.util.List getEnvelopeSignaturesList() {
if (envelopeSignaturesBuilder_ == null) {
return java.util.Collections.unmodifiableList(envelopeSignatures_);
} else {
return envelopeSignaturesBuilder_.getMessageList();
}
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public int getEnvelopeSignaturesCount() {
if (envelopeSignaturesBuilder_ == null) {
return envelopeSignatures_.size();
} else {
return envelopeSignaturesBuilder_.getCount();
}
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature getEnvelopeSignatures(int index) {
if (envelopeSignaturesBuilder_ == null) {
return envelopeSignatures_.get(index);
} else {
return envelopeSignaturesBuilder_.getMessage(index);
}
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder setEnvelopeSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature value) {
if (envelopeSignaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.set(index, value);
onChanged();
} else {
envelopeSignaturesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder setEnvelopeSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder builderForValue) {
if (envelopeSignaturesBuilder_ == null) {
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.set(index, builderForValue.build());
onChanged();
} else {
envelopeSignaturesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder addEnvelopeSignatures(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature value) {
if (envelopeSignaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.add(value);
onChanged();
} else {
envelopeSignaturesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder addEnvelopeSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature value) {
if (envelopeSignaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.add(index, value);
onChanged();
} else {
envelopeSignaturesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder addEnvelopeSignatures(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder builderForValue) {
if (envelopeSignaturesBuilder_ == null) {
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.add(builderForValue.build());
onChanged();
} else {
envelopeSignaturesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder addEnvelopeSignatures(
int index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder builderForValue) {
if (envelopeSignaturesBuilder_ == null) {
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.add(index, builderForValue.build());
onChanged();
} else {
envelopeSignaturesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder addAllEnvelopeSignatures(
java.lang.Iterable extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature> values) {
if (envelopeSignaturesBuilder_ == null) {
ensureEnvelopeSignaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, envelopeSignatures_);
onChanged();
} else {
envelopeSignaturesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder clearEnvelopeSignatures() {
if (envelopeSignaturesBuilder_ == null) {
envelopeSignatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
envelopeSignaturesBuilder_.clear();
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public Builder removeEnvelopeSignatures(int index) {
if (envelopeSignaturesBuilder_ == null) {
ensureEnvelopeSignaturesIsMutable();
envelopeSignatures_.remove(index);
onChanged();
} else {
envelopeSignaturesBuilder_.remove(index);
}
return this;
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder getEnvelopeSignaturesBuilder(
int index) {
return getEnvelopeSignaturesFieldBuilder().getBuilder(index);
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder getEnvelopeSignaturesOrBuilder(
int index) {
if (envelopeSignaturesBuilder_ == null) {
return envelopeSignatures_.get(index); } else {
return envelopeSignaturesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public java.util.List extends org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getEnvelopeSignaturesOrBuilderList() {
if (envelopeSignaturesBuilder_ != null) {
return envelopeSignaturesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(envelopeSignatures_);
}
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder addEnvelopeSignaturesBuilder() {
return getEnvelopeSignaturesFieldBuilder().addBuilder(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.getDefaultInstance());
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder addEnvelopeSignaturesBuilder(
int index) {
return getEnvelopeSignaturesFieldBuilder().addBuilder(
index, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.getDefaultInstance());
}
/**
* repeated .entities.Transaction.Signature envelope_signatures = 9;
*/
public java.util.List
getEnvelopeSignaturesBuilderList() {
return getEnvelopeSignaturesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>
getEnvelopeSignaturesFieldBuilder() {
if (envelopeSignaturesBuilder_ == null) {
envelopeSignaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Signature.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.SignatureOrBuilder>(
envelopeSignatures_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
envelopeSignatures_ = null;
}
return envelopeSignaturesBuilder_;
}
@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:entities.Transaction)
}
// @@protoc_insertion_point(class_scope:entities.Transaction)
private static final org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction();
}
public static org.onflow.protobuf.legacy.entities.TransactionOuterClass.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 org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_entities_Transaction_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_entities_Transaction_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_entities_Transaction_ProposalKey_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_entities_Transaction_ProposalKey_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_entities_Transaction_Signature_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_entities_Transaction_Signature_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n&flow/legacy/entities/transaction.proto" +
"\022\010entities\"\301\003\n\013Transaction\022\016\n\006script\030\001 \001" +
"(\014\022\021\n\targuments\030\002 \003(\014\022\032\n\022reference_block" +
"_id\030\003 \001(\014\022\021\n\tgas_limit\030\004 \001(\004\0227\n\014proposal" +
"_key\030\005 \001(\0132!.entities.Transaction.Propos" +
"alKey\022\r\n\005payer\030\006 \001(\014\022\023\n\013authorizers\030\007 \003(" +
"\014\022;\n\022payload_signatures\030\010 \003(\0132\037.entities" +
".Transaction.Signature\022<\n\023envelope_signa" +
"tures\030\t \003(\0132\037.entities.Transaction.Signa" +
"ture\032G\n\013ProposalKey\022\017\n\007address\030\001 \001(\014\022\016\n\006" +
"key_id\030\002 \001(\r\022\027\n\017sequence_number\030\003 \001(\004\032?\n" +
"\tSignature\022\017\n\007address\030\001 \001(\014\022\016\n\006key_id\030\002 " +
"\001(\r\022\021\n\tsignature\030\003 \001(\014*c\n\021TransactionSta" +
"tus\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\r\n\tFINALIZ" +
"ED\020\002\022\014\n\010EXECUTED\020\003\022\n\n\006SEALED\020\004\022\013\n\007EXPIRE" +
"D\020\005B^\n#org.onflow.protobuf.legacy.entiti" +
"esZ7github.com/onflow/flow/protobuf/go/f" +
"low/legacy/entitiesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_entities_Transaction_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_entities_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_entities_Transaction_descriptor,
new java.lang.String[] { "Script", "Arguments", "ReferenceBlockId", "GasLimit", "ProposalKey", "Payer", "Authorizers", "PayloadSignatures", "EnvelopeSignatures", });
internal_static_entities_Transaction_ProposalKey_descriptor =
internal_static_entities_Transaction_descriptor.getNestedTypes().get(0);
internal_static_entities_Transaction_ProposalKey_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_entities_Transaction_ProposalKey_descriptor,
new java.lang.String[] { "Address", "KeyId", "SequenceNumber", });
internal_static_entities_Transaction_Signature_descriptor =
internal_static_entities_Transaction_descriptor.getNestedTypes().get(1);
internal_static_entities_Transaction_Signature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_entities_Transaction_Signature_descriptor,
new java.lang.String[] { "Address", "KeyId", "Signature", });
}
// @@protoc_insertion_point(outer_class_scope)
}