All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vision.visionjsdk.proto.Chain Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: core/chain.proto

package org.vision.visionjsdk.proto;

public final class Chain {
  private Chain() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TransactionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protocol.Transaction)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .protocol.Transaction.raw raw_data = 1;
     * @return Whether the rawData field is set.
     */
    boolean hasRawData();
    /**
     * .protocol.Transaction.raw raw_data = 1;
     * @return The rawData.
     */
    org.vision.visionjsdk.proto.Chain.Transaction.raw getRawData();
    /**
     * .protocol.Transaction.raw raw_data = 1;
     * @return org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder
     */
    org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder getRawDataOrBuilder();

    /**
     * 
     * only support size = 1, repeated list here for muti-sig extension
     * 
* * repeated bytes signature = 2; * @return A list containing the signature. */ java.util.List getSignatureList(); /** *
     * only support size = 1, repeated list here for muti-sig extension
     * 
* * repeated bytes signature = 2; * @return The count of signature. */ int getSignatureCount(); /** *
     * only support size = 1, repeated list here for muti-sig extension
     * 
* * repeated bytes signature = 2; * @param index The index of the element to return. * @return The signature at the given index. */ com.google.protobuf.ByteString getSignature(int index); /** * repeated .protocol.Transaction.Result ret = 5; * @return list */ java.util.List getRetList(); /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @return org.vision.visionjsdk.proto.Chain.Transaction.Result */ org.vision.visionjsdk.proto.Chain.Transaction.Result getRet(int index); /** * repeated .protocol.Transaction.Result ret = 5; * @return int */ int getRetCount(); /** * repeated .protocol.Transaction.Result ret = 5; * @return list */ java.util.List getRetOrBuilderList(); /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @return ResultOrBuilder */ org.vision.visionjsdk.proto.Chain.Transaction.ResultOrBuilder getRetOrBuilder( int index); } /** * Protobuf type {@code protocol.Transaction} */ public static final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.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() { signature_ = java.util.Collections.emptyList(); ret_ = 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: { org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder subBuilder = null; if (rawData_ != null) { subBuilder = rawData_.toBuilder(); } rawData_ = input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.raw.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rawData_); rawData_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { signature_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } signature_.add(input.readBytes()); break; } case 42: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { ret_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ret_.add( input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.Result.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)) { signature_ = java.util.Collections.unmodifiableList(signature_); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { ret_ = java.util.Collections.unmodifiableList(ret_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.class, org.vision.visionjsdk.proto.Chain.Transaction.Builder.class); } public interface ContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Transaction.Contract) com.google.protobuf.MessageOrBuilder { /** * .protocol.Transaction.Contract.ContractType type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .protocol.Transaction.Contract.ContractType type = 1; * @return The type. */ org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType getType(); /** * .google.protobuf.Any parameter = 2; * @return Whether the parameter field is set. */ boolean hasParameter(); /** * .google.protobuf.Any parameter = 2; * @return The parameter. */ com.google.protobuf.Any getParameter(); /** * .google.protobuf.Any parameter = 2; * @return AnyOrBuilder */ com.google.protobuf.AnyOrBuilder getParameterOrBuilder(); /** * bytes provider = 3; * @return The provider. */ com.google.protobuf.ByteString getProvider(); /** * bytes ContractName = 4; * @return The contractName. */ com.google.protobuf.ByteString getContractName(); /** * int32 Permission_id = 5; * @return The permissionId. */ int getPermissionId(); } /** * Protobuf type {@code protocol.Transaction.Contract} */ public static final class Contract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Transaction.Contract) ContractOrBuilder { private static final long serialVersionUID = 0L; // Use Contract.newBuilder() to construct. private Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Contract() { type_ = 0; provider_ = com.google.protobuf.ByteString.EMPTY; contractName_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Contract(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Contract( 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 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 18: { com.google.protobuf.Any.Builder subBuilder = null; if (parameter_ != null) { subBuilder = parameter_.toBuilder(); } parameter_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(parameter_); parameter_ = subBuilder.buildPartial(); } break; } case 26: { provider_ = input.readBytes(); break; } case 34: { contractName_ = input.readBytes(); break; } case 40: { permissionId_ = input.readInt32(); 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.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.Contract.class, org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder.class); } /** * Protobuf enum {@code protocol.Transaction.Contract.ContractType} */ public enum ContractType implements com.google.protobuf.ProtocolMessageEnum { /** * AccountCreateContract = 0; */ AccountCreateContract(0), /** * TransferContract = 1; */ TransferContract(1), /** * TransferAssetContract = 2; */ TransferAssetContract(2), /** * VoteAssetContract = 3; */ VoteAssetContract(3), /** * VoteWitnessContract = 4; */ VoteWitnessContract(4), /** * WitnessCreateContract = 5; */ WitnessCreateContract(5), /** * AssetIssueContract = 6; */ AssetIssueContract(6), /** * WitnessUpdateContract = 8; */ WitnessUpdateContract(8), /** * ParticipateAssetIssueContract = 9; */ ParticipateAssetIssueContract(9), /** * AccountUpdateContract = 10; */ AccountUpdateContract(10), /** * FreezeBalanceContract = 11; */ FreezeBalanceContract(11), /** * UnfreezeBalanceContract = 12; */ UnfreezeBalanceContract(12), /** * WithdrawBalanceContract = 13; */ WithdrawBalanceContract(13), /** * UnfreezeAssetContract = 14; */ UnfreezeAssetContract(14), /** * UpdateAssetContract = 15; */ UpdateAssetContract(15), /** * ProposalCreateContract = 16; */ ProposalCreateContract(16), /** * ProposalApproveContract = 17; */ ProposalApproveContract(17), /** * ProposalDeleteContract = 18; */ ProposalDeleteContract(18), /** * SetAccountIdContract = 19; */ SetAccountIdContract(19), /** * CustomContract = 20; */ CustomContract(20), /** * CreateSmartContract = 30; */ CreateSmartContract(30), /** * TriggerSmartContract = 31; */ TriggerSmartContract(31), /** * GetContract = 32; */ GetContract(32), /** * UpdateSettingContract = 33; */ UpdateSettingContract(33), /** * ExchangeCreateContract = 41; */ ExchangeCreateContract(41), /** * ExchangeInjectContract = 42; */ ExchangeInjectContract(42), /** * ExchangeWithdrawContract = 43; */ ExchangeWithdrawContract(43), /** * ExchangeTransactionContract = 44; */ ExchangeTransactionContract(44), /** * UpdateEntropyLimitContract = 45; */ UpdateEntropyLimitContract(45), /** * AccountPermissionUpdateContract = 46; */ AccountPermissionUpdateContract(46), /** * ClearABIContract = 48; */ ClearABIContract(48), /** * UpdateBrokerageContract = 49; */ UpdateBrokerageContract(49), /** * ShieldedTransferContract = 51; */ ShieldedTransferContract(51), /** * MarketSellAssetContract = 52; */ MarketSellAssetContract(52), /** * MarketCancelOrderContract = 53; */ MarketCancelOrderContract(53), UNRECOGNIZED(-1), ; /** * AccountCreateContract = 0; */ public static final int AccountCreateContract_VALUE = 0; /** * TransferContract = 1; */ public static final int TransferContract_VALUE = 1; /** * TransferAssetContract = 2; */ public static final int TransferAssetContract_VALUE = 2; /** * VoteAssetContract = 3; */ public static final int VoteAssetContract_VALUE = 3; /** * VoteWitnessContract = 4; */ public static final int VoteWitnessContract_VALUE = 4; /** * WitnessCreateContract = 5; */ public static final int WitnessCreateContract_VALUE = 5; /** * AssetIssueContract = 6; */ public static final int AssetIssueContract_VALUE = 6; /** * WitnessUpdateContract = 8; */ public static final int WitnessUpdateContract_VALUE = 8; /** * ParticipateAssetIssueContract = 9; */ public static final int ParticipateAssetIssueContract_VALUE = 9; /** * AccountUpdateContract = 10; */ public static final int AccountUpdateContract_VALUE = 10; /** * FreezeBalanceContract = 11; */ public static final int FreezeBalanceContract_VALUE = 11; /** * UnfreezeBalanceContract = 12; */ public static final int UnfreezeBalanceContract_VALUE = 12; /** * WithdrawBalanceContract = 13; */ public static final int WithdrawBalanceContract_VALUE = 13; /** * UnfreezeAssetContract = 14; */ public static final int UnfreezeAssetContract_VALUE = 14; /** * UpdateAssetContract = 15; */ public static final int UpdateAssetContract_VALUE = 15; /** * ProposalCreateContract = 16; */ public static final int ProposalCreateContract_VALUE = 16; /** * ProposalApproveContract = 17; */ public static final int ProposalApproveContract_VALUE = 17; /** * ProposalDeleteContract = 18; */ public static final int ProposalDeleteContract_VALUE = 18; /** * SetAccountIdContract = 19; */ public static final int SetAccountIdContract_VALUE = 19; /** * CustomContract = 20; */ public static final int CustomContract_VALUE = 20; /** * CreateSmartContract = 30; */ public static final int CreateSmartContract_VALUE = 30; /** * TriggerSmartContract = 31; */ public static final int TriggerSmartContract_VALUE = 31; /** * GetContract = 32; */ public static final int GetContract_VALUE = 32; /** * UpdateSettingContract = 33; */ public static final int UpdateSettingContract_VALUE = 33; /** * ExchangeCreateContract = 41; */ public static final int ExchangeCreateContract_VALUE = 41; /** * ExchangeInjectContract = 42; */ public static final int ExchangeInjectContract_VALUE = 42; /** * ExchangeWithdrawContract = 43; */ public static final int ExchangeWithdrawContract_VALUE = 43; /** * ExchangeTransactionContract = 44; */ public static final int ExchangeTransactionContract_VALUE = 44; /** * UpdateEntropyLimitContract = 45; */ public static final int UpdateEntropyLimitContract_VALUE = 45; /** * AccountPermissionUpdateContract = 46; */ public static final int AccountPermissionUpdateContract_VALUE = 46; /** * ClearABIContract = 48; */ public static final int ClearABIContract_VALUE = 48; /** * UpdateBrokerageContract = 49; */ public static final int UpdateBrokerageContract_VALUE = 49; /** * ShieldedTransferContract = 51; */ public static final int ShieldedTransferContract_VALUE = 51; /** * MarketSellAssetContract = 52; */ public static final int MarketSellAssetContract_VALUE = 52; /** * MarketCancelOrderContract = 53; */ public static final int MarketCancelOrderContract_VALUE = 53; 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 ContractType 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 ContractType forNumber(int value) { switch (value) { case 0: return AccountCreateContract; case 1: return TransferContract; case 2: return TransferAssetContract; case 3: return VoteAssetContract; case 4: return VoteWitnessContract; case 5: return WitnessCreateContract; case 6: return AssetIssueContract; case 8: return WitnessUpdateContract; case 9: return ParticipateAssetIssueContract; case 10: return AccountUpdateContract; case 11: return FreezeBalanceContract; case 12: return UnfreezeBalanceContract; case 13: return WithdrawBalanceContract; case 14: return UnfreezeAssetContract; case 15: return UpdateAssetContract; case 16: return ProposalCreateContract; case 17: return ProposalApproveContract; case 18: return ProposalDeleteContract; case 19: return SetAccountIdContract; case 20: return CustomContract; case 30: return CreateSmartContract; case 31: return TriggerSmartContract; case 32: return GetContract; case 33: return UpdateSettingContract; case 41: return ExchangeCreateContract; case 42: return ExchangeInjectContract; case 43: return ExchangeWithdrawContract; case 44: return ExchangeTransactionContract; case 45: return UpdateEntropyLimitContract; case 46: return AccountPermissionUpdateContract; case 48: return ClearABIContract; case 49: return UpdateBrokerageContract; case 51: return ShieldedTransferContract; case 52: return MarketSellAssetContract; case 53: return MarketCancelOrderContract; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ContractType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ContractType findValueByNumber(int number) { return ContractType.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.vision.visionjsdk.proto.Chain.Transaction.Contract.getDescriptor().getEnumTypes().get(0); } private static final ContractType[] VALUES = values(); public static ContractType 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 ContractType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.Transaction.Contract.ContractType) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .protocol.Transaction.Contract.ContractType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.Transaction.Contract.ContractType type = 1; * @return The type. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType getType() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType result = org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType.valueOf(type_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType.UNRECOGNIZED : result; } public static final int PARAMETER_FIELD_NUMBER = 2; private com.google.protobuf.Any parameter_; /** * .google.protobuf.Any parameter = 2; * @return Whether the parameter field is set. */ @java.lang.Override public boolean hasParameter() { return parameter_ != null; } /** * .google.protobuf.Any parameter = 2; * @return The parameter. */ @java.lang.Override public com.google.protobuf.Any getParameter() { return parameter_ == null ? com.google.protobuf.Any.getDefaultInstance() : parameter_; } /** * .google.protobuf.Any parameter = 2; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getParameterOrBuilder() { return getParameter(); } public static final int PROVIDER_FIELD_NUMBER = 3; private com.google.protobuf.ByteString provider_; /** * bytes provider = 3; * @return The provider. */ @java.lang.Override public com.google.protobuf.ByteString getProvider() { return provider_; } public static final int CONTRACTNAME_FIELD_NUMBER = 4; private com.google.protobuf.ByteString contractName_; /** * bytes ContractName = 4; * @return The contractName. */ @java.lang.Override public com.google.protobuf.ByteString getContractName() { return contractName_; } public static final int PERMISSION_ID_FIELD_NUMBER = 5; private int permissionId_; /** * int32 Permission_id = 5; * @return The permissionId. */ @java.lang.Override public int getPermissionId() { return permissionId_; } 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 (type_ != org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType.AccountCreateContract.getNumber()) { output.writeEnum(1, type_); } if (parameter_ != null) { output.writeMessage(2, getParameter()); } if (!provider_.isEmpty()) { output.writeBytes(3, provider_); } if (!contractName_.isEmpty()) { output.writeBytes(4, contractName_); } if (permissionId_ != 0) { output.writeInt32(5, permissionId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType.AccountCreateContract.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (parameter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getParameter()); } if (!provider_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, provider_); } if (!contractName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, contractName_); } if (permissionId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, permissionId_); } 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.vision.visionjsdk.proto.Chain.Transaction.Contract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Chain.Transaction.Contract other = (org.vision.visionjsdk.proto.Chain.Transaction.Contract) obj; if (type_ != other.type_) return false; if (hasParameter() != other.hasParameter()) return false; if (hasParameter()) { if (!getParameter() .equals(other.getParameter())) return false; } if (!getProvider() .equals(other.getProvider())) return false; if (!getContractName() .equals(other.getContractName())) return false; if (getPermissionId() != other.getPermissionId()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasParameter()) { hash = (37 * hash) + PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getParameter().hashCode(); } hash = (37 * hash) + PROVIDER_FIELD_NUMBER; hash = (53 * hash) + getProvider().hashCode(); hash = (37 * hash) + CONTRACTNAME_FIELD_NUMBER; hash = (53 * hash) + getContractName().hashCode(); hash = (37 * hash) + PERMISSION_ID_FIELD_NUMBER; hash = (53 * hash) + getPermissionId(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract 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.vision.visionjsdk.proto.Chain.Transaction.Contract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract 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.vision.visionjsdk.proto.Chain.Transaction.Contract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract 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.vision.visionjsdk.proto.Chain.Transaction.Contract 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 protocol.Transaction.Contract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Transaction.Contract) org.vision.visionjsdk.proto.Chain.Transaction.ContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.Contract.class, org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Chain.Transaction.Contract.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(); type_ = 0; if (parameterBuilder_ == null) { parameter_ = null; } else { parameter_ = null; parameterBuilder_ = null; } provider_ = com.google.protobuf.ByteString.EMPTY; contractName_ = com.google.protobuf.ByteString.EMPTY; permissionId_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Contract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Contract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Chain.Transaction.Contract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Contract build() { org.vision.visionjsdk.proto.Chain.Transaction.Contract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Contract buildPartial() { org.vision.visionjsdk.proto.Chain.Transaction.Contract result = new org.vision.visionjsdk.proto.Chain.Transaction.Contract(this); result.type_ = type_; if (parameterBuilder_ == null) { result.parameter_ = parameter_; } else { result.parameter_ = parameterBuilder_.build(); } result.provider_ = provider_; result.contractName_ = contractName_; result.permissionId_ = permissionId_; 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.vision.visionjsdk.proto.Chain.Transaction.Contract) { return mergeFrom((org.vision.visionjsdk.proto.Chain.Transaction.Contract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Chain.Transaction.Contract other) { if (other == org.vision.visionjsdk.proto.Chain.Transaction.Contract.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasParameter()) { mergeParameter(other.getParameter()); } if (other.getProvider() != com.google.protobuf.ByteString.EMPTY) { setProvider(other.getProvider()); } if (other.getContractName() != com.google.protobuf.ByteString.EMPTY) { setContractName(other.getContractName()); } if (other.getPermissionId() != 0) { setPermissionId(other.getPermissionId()); } 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.vision.visionjsdk.proto.Chain.Transaction.Contract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Chain.Transaction.Contract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * .protocol.Transaction.Contract.ContractType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.Transaction.Contract.ContractType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .protocol.Transaction.Contract.ContractType type = 1; * @return The type. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType getType() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType result = org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType.valueOf(type_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType.UNRECOGNIZED : result; } /** * .protocol.Transaction.Contract.ContractType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.vision.visionjsdk.proto.Chain.Transaction.Contract.ContractType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .protocol.Transaction.Contract.ContractType type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.Any parameter_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> parameterBuilder_; /** * .google.protobuf.Any parameter = 2; * @return Whether the parameter field is set. */ public boolean hasParameter() { return parameterBuilder_ != null || parameter_ != null; } /** * .google.protobuf.Any parameter = 2; * @return The parameter. */ public com.google.protobuf.Any getParameter() { if (parameterBuilder_ == null) { return parameter_ == null ? com.google.protobuf.Any.getDefaultInstance() : parameter_; } else { return parameterBuilder_.getMessage(); } } /** * .google.protobuf.Any parameter = 2; * @param value value * @return Builder */ public Builder setParameter(com.google.protobuf.Any value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parameter_ = value; onChanged(); } else { parameterBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Any parameter = 2; * @param builderForValue value * @return Builder */ public Builder setParameter( com.google.protobuf.Any.Builder builderForValue) { if (parameterBuilder_ == null) { parameter_ = builderForValue.build(); onChanged(); } else { parameterBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Any parameter = 2; * @param value value * @return Builder */ public Builder mergeParameter(com.google.protobuf.Any value) { if (parameterBuilder_ == null) { if (parameter_ != null) { parameter_ = com.google.protobuf.Any.newBuilder(parameter_).mergeFrom(value).buildPartial(); } else { parameter_ = value; } onChanged(); } else { parameterBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Any parameter = 2; * @return Builder */ public Builder clearParameter() { if (parameterBuilder_ == null) { parameter_ = null; onChanged(); } else { parameter_ = null; parameterBuilder_ = null; } return this; } /** * .google.protobuf.Any parameter = 2; * @return Builder */ public com.google.protobuf.Any.Builder getParameterBuilder() { onChanged(); return getParameterFieldBuilder().getBuilder(); } /** * .google.protobuf.Any parameter = 2; * @return AnyOrBuilder */ public com.google.protobuf.AnyOrBuilder getParameterOrBuilder() { if (parameterBuilder_ != null) { return parameterBuilder_.getMessageOrBuilder(); } else { return parameter_ == null ? com.google.protobuf.Any.getDefaultInstance() : parameter_; } } /** * .google.protobuf.Any parameter = 2; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getParameterFieldBuilder() { if (parameterBuilder_ == null) { parameterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getParameter(), getParentForChildren(), isClean()); parameter_ = null; } return parameterBuilder_; } private com.google.protobuf.ByteString provider_ = com.google.protobuf.ByteString.EMPTY; /** * bytes provider = 3; * @return The provider. */ @java.lang.Override public com.google.protobuf.ByteString getProvider() { return provider_; } /** * bytes provider = 3; * @param value The provider to set. * @return This builder for chaining. */ public Builder setProvider(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } provider_ = value; onChanged(); return this; } /** * bytes provider = 3; * @return This builder for chaining. */ public Builder clearProvider() { provider_ = getDefaultInstance().getProvider(); onChanged(); return this; } private com.google.protobuf.ByteString contractName_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ContractName = 4; * @return The contractName. */ @java.lang.Override public com.google.protobuf.ByteString getContractName() { return contractName_; } /** * bytes ContractName = 4; * @param value The contractName to set. * @return This builder for chaining. */ public Builder setContractName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } contractName_ = value; onChanged(); return this; } /** * bytes ContractName = 4; * @return This builder for chaining. */ public Builder clearContractName() { contractName_ = getDefaultInstance().getContractName(); onChanged(); return this; } private int permissionId_ ; /** * int32 Permission_id = 5; * @return The permissionId. */ @java.lang.Override public int getPermissionId() { return permissionId_; } /** * int32 Permission_id = 5; * @param value The permissionId to set. * @return This builder for chaining. */ public Builder setPermissionId(int value) { permissionId_ = value; onChanged(); return this; } /** * int32 Permission_id = 5; * @return This builder for chaining. */ public Builder clearPermissionId() { permissionId_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.Transaction.Contract) } // @@protoc_insertion_point(class_scope:protocol.Transaction.Contract) private static final org.vision.visionjsdk.proto.Chain.Transaction.Contract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Chain.Transaction.Contract(); } public static org.vision.visionjsdk.proto.Chain.Transaction.Contract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Contract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Contract(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.vision.visionjsdk.proto.Chain.Transaction.Contract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Transaction.Result) com.google.protobuf.MessageOrBuilder { /** * int64 fee = 1; * @return The fee. */ long getFee(); /** * .protocol.Transaction.Result.code ret = 2; * @return The enum numeric value on the wire for ret. */ int getRetValue(); /** * .protocol.Transaction.Result.code ret = 2; * @return The ret. */ org.vision.visionjsdk.proto.Chain.Transaction.Result.code getRet(); /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @return The enum numeric value on the wire for contractRet. */ int getContractRetValue(); /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @return The contractRet. */ org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getContractRet(); /** * string assetIssueID = 14; * @return The assetIssueID. */ java.lang.String getAssetIssueID(); /** * string assetIssueID = 14; * @return The bytes for assetIssueID. */ com.google.protobuf.ByteString getAssetIssueIDBytes(); /** * int64 withdraw_amount = 15; * @return The withdrawAmount. */ long getWithdrawAmount(); /** * int64 unfreeze_amount = 16; * @return The unfreezeAmount. */ long getUnfreezeAmount(); /** * int64 exchange_received_amount = 18; * @return The exchangeReceivedAmount. */ long getExchangeReceivedAmount(); /** * int64 exchange_inject_another_amount = 19; * @return The exchangeInjectAnotherAmount. */ long getExchangeInjectAnotherAmount(); /** * int64 exchange_withdraw_another_amount = 20; * @return The exchangeWithdrawAnotherAmount. */ long getExchangeWithdrawAnotherAmount(); /** * int64 exchange_id = 21; * @return The exchangeId. */ long getExchangeId(); /** * int64 shielded_transaction_fee = 22; * @return The shieldedTransactionFee. */ long getShieldedTransactionFee(); } /** * Protobuf type {@code protocol.Transaction.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Transaction.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { ret_ = 0; contractRet_ = 0; assetIssueID_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Result( 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 8: { fee_ = input.readInt64(); break; } case 16: { int rawValue = input.readEnum(); ret_ = rawValue; break; } case 24: { int rawValue = input.readEnum(); contractRet_ = rawValue; break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); assetIssueID_ = s; break; } case 120: { withdrawAmount_ = input.readInt64(); break; } case 128: { unfreezeAmount_ = input.readInt64(); break; } case 144: { exchangeReceivedAmount_ = input.readInt64(); break; } case 152: { exchangeInjectAnotherAmount_ = input.readInt64(); break; } case 160: { exchangeWithdrawAnotherAmount_ = input.readInt64(); break; } case 168: { exchangeId_ = input.readInt64(); break; } case 176: { shieldedTransactionFee_ = input.readInt64(); 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.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.Result.class, org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder.class); } /** * Protobuf enum {@code protocol.Transaction.Result.code} */ public enum code implements com.google.protobuf.ProtocolMessageEnum { /** * SUCESS = 0; */ SUCESS(0), /** * FAILED = 1; */ FAILED(1), UNRECOGNIZED(-1), ; /** * SUCESS = 0; */ public static final int SUCESS_VALUE = 0; /** * FAILED = 1; */ public static final int FAILED_VALUE = 1; 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 code 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 code forNumber(int value) { switch (value) { case 0: return SUCESS; case 1: return FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public code findValueByNumber(int number) { return code.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.vision.visionjsdk.proto.Chain.Transaction.Result.getDescriptor().getEnumTypes().get(0); } private static final code[] VALUES = values(); public static code 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 code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.Transaction.Result.code) } /** * Protobuf enum {@code protocol.Transaction.Result.contractResult} */ public enum contractResult implements com.google.protobuf.ProtocolMessageEnum { /** * DEFAULT = 0; */ DEFAULT(0), /** * SUCCESS = 1; */ SUCCESS(1), /** * REVERT = 2; */ REVERT(2), /** * BAD_JUMP_DESTINATION = 3; */ BAD_JUMP_DESTINATION(3), /** * OUT_OF_MEMORY = 4; */ OUT_OF_MEMORY(4), /** * PRECOMPILED_CONTRACT = 5; */ PRECOMPILED_CONTRACT(5), /** * STACK_TOO_SMALL = 6; */ STACK_TOO_SMALL(6), /** * STACK_TOO_LARGE = 7; */ STACK_TOO_LARGE(7), /** * ILLEGAL_OPERATION = 8; */ ILLEGAL_OPERATION(8), /** * STACK_OVERFLOW = 9; */ STACK_OVERFLOW(9), /** * OUT_OF_ENTROPY = 10; */ OUT_OF_ENTROPY(10), /** * OUT_OF_TIME = 11; */ OUT_OF_TIME(11), /** * JVM_STACK_OVER_FLOW = 12; */ JVM_STACK_OVER_FLOW(12), /** * UNKNOWN = 13; */ UNKNOWN(13), /** * TRANSFER_FAILED = 14; */ TRANSFER_FAILED(14), UNRECOGNIZED(-1), ; /** * DEFAULT = 0; */ public static final int DEFAULT_VALUE = 0; /** * SUCCESS = 1; */ public static final int SUCCESS_VALUE = 1; /** * REVERT = 2; */ public static final int REVERT_VALUE = 2; /** * BAD_JUMP_DESTINATION = 3; */ public static final int BAD_JUMP_DESTINATION_VALUE = 3; /** * OUT_OF_MEMORY = 4; */ public static final int OUT_OF_MEMORY_VALUE = 4; /** * PRECOMPILED_CONTRACT = 5; */ public static final int PRECOMPILED_CONTRACT_VALUE = 5; /** * STACK_TOO_SMALL = 6; */ public static final int STACK_TOO_SMALL_VALUE = 6; /** * STACK_TOO_LARGE = 7; */ public static final int STACK_TOO_LARGE_VALUE = 7; /** * ILLEGAL_OPERATION = 8; */ public static final int ILLEGAL_OPERATION_VALUE = 8; /** * STACK_OVERFLOW = 9; */ public static final int STACK_OVERFLOW_VALUE = 9; /** * OUT_OF_ENTROPY = 10; */ public static final int OUT_OF_ENTROPY_VALUE = 10; /** * OUT_OF_TIME = 11; */ public static final int OUT_OF_TIME_VALUE = 11; /** * JVM_STACK_OVER_FLOW = 12; */ public static final int JVM_STACK_OVER_FLOW_VALUE = 12; /** * UNKNOWN = 13; */ public static final int UNKNOWN_VALUE = 13; /** * TRANSFER_FAILED = 14; */ public static final int TRANSFER_FAILED_VALUE = 14; 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 contractResult 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 contractResult forNumber(int value) { switch (value) { case 0: return DEFAULT; case 1: return SUCCESS; case 2: return REVERT; case 3: return BAD_JUMP_DESTINATION; case 4: return OUT_OF_MEMORY; case 5: return PRECOMPILED_CONTRACT; case 6: return STACK_TOO_SMALL; case 7: return STACK_TOO_LARGE; case 8: return ILLEGAL_OPERATION; case 9: return STACK_OVERFLOW; case 10: return OUT_OF_ENTROPY; case 11: return OUT_OF_TIME; case 12: return JVM_STACK_OVER_FLOW; case 13: return UNKNOWN; case 14: return TRANSFER_FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< contractResult> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public contractResult findValueByNumber(int number) { return contractResult.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.vision.visionjsdk.proto.Chain.Transaction.Result.getDescriptor().getEnumTypes().get(1); } private static final contractResult[] VALUES = values(); public static contractResult 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 contractResult(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.Transaction.Result.contractResult) } public static final int FEE_FIELD_NUMBER = 1; private long fee_; /** * int64 fee = 1; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } public static final int RET_FIELD_NUMBER = 2; private int ret_; /** * .protocol.Transaction.Result.code ret = 2; * @return The enum numeric value on the wire for ret. */ @java.lang.Override public int getRetValue() { return ret_; } /** * .protocol.Transaction.Result.code ret = 2; * @return The ret. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result.code getRet() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Result.code result = org.vision.visionjsdk.proto.Chain.Transaction.Result.code.valueOf(ret_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Result.code.UNRECOGNIZED : result; } public static final int CONTRACTRET_FIELD_NUMBER = 3; private int contractRet_; /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @return The enum numeric value on the wire for contractRet. */ @java.lang.Override public int getContractRetValue() { return contractRet_; } /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @return The contractRet. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getContractRet() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult result = org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.valueOf(contractRet_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.UNRECOGNIZED : result; } public static final int ASSETISSUEID_FIELD_NUMBER = 14; private volatile java.lang.Object assetIssueID_; /** * string assetIssueID = 14; * @return The assetIssueID. */ @java.lang.Override public java.lang.String getAssetIssueID() { java.lang.Object ref = assetIssueID_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetIssueID_ = s; return s; } } /** * string assetIssueID = 14; * @return The bytes for assetIssueID. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIssueIDBytes() { java.lang.Object ref = assetIssueID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetIssueID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WITHDRAW_AMOUNT_FIELD_NUMBER = 15; private long withdrawAmount_; /** * int64 withdraw_amount = 15; * @return The withdrawAmount. */ @java.lang.Override public long getWithdrawAmount() { return withdrawAmount_; } public static final int UNFREEZE_AMOUNT_FIELD_NUMBER = 16; private long unfreezeAmount_; /** * int64 unfreeze_amount = 16; * @return The unfreezeAmount. */ @java.lang.Override public long getUnfreezeAmount() { return unfreezeAmount_; } public static final int EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER = 18; private long exchangeReceivedAmount_; /** * int64 exchange_received_amount = 18; * @return The exchangeReceivedAmount. */ @java.lang.Override public long getExchangeReceivedAmount() { return exchangeReceivedAmount_; } public static final int EXCHANGE_INJECT_ANOTHER_AMOUNT_FIELD_NUMBER = 19; private long exchangeInjectAnotherAmount_; /** * int64 exchange_inject_another_amount = 19; * @return The exchangeInjectAnotherAmount. */ @java.lang.Override public long getExchangeInjectAnotherAmount() { return exchangeInjectAnotherAmount_; } public static final int EXCHANGE_WITHDRAW_ANOTHER_AMOUNT_FIELD_NUMBER = 20; private long exchangeWithdrawAnotherAmount_; /** * int64 exchange_withdraw_another_amount = 20; * @return The exchangeWithdrawAnotherAmount. */ @java.lang.Override public long getExchangeWithdrawAnotherAmount() { return exchangeWithdrawAnotherAmount_; } public static final int EXCHANGE_ID_FIELD_NUMBER = 21; private long exchangeId_; /** * int64 exchange_id = 21; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } public static final int SHIELDED_TRANSACTION_FEE_FIELD_NUMBER = 22; private long shieldedTransactionFee_; /** * int64 shielded_transaction_fee = 22; * @return The shieldedTransactionFee. */ @java.lang.Override public long getShieldedTransactionFee() { return shieldedTransactionFee_; } 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 (fee_ != 0L) { output.writeInt64(1, fee_); } if (ret_ != org.vision.visionjsdk.proto.Chain.Transaction.Result.code.SUCESS.getNumber()) { output.writeEnum(2, ret_); } if (contractRet_ != org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) { output.writeEnum(3, contractRet_); } if (!getAssetIssueIDBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, assetIssueID_); } if (withdrawAmount_ != 0L) { output.writeInt64(15, withdrawAmount_); } if (unfreezeAmount_ != 0L) { output.writeInt64(16, unfreezeAmount_); } if (exchangeReceivedAmount_ != 0L) { output.writeInt64(18, exchangeReceivedAmount_); } if (exchangeInjectAnotherAmount_ != 0L) { output.writeInt64(19, exchangeInjectAnotherAmount_); } if (exchangeWithdrawAnotherAmount_ != 0L) { output.writeInt64(20, exchangeWithdrawAnotherAmount_); } if (exchangeId_ != 0L) { output.writeInt64(21, exchangeId_); } if (shieldedTransactionFee_ != 0L) { output.writeInt64(22, shieldedTransactionFee_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, fee_); } if (ret_ != org.vision.visionjsdk.proto.Chain.Transaction.Result.code.SUCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, ret_); } if (contractRet_ != org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, contractRet_); } if (!getAssetIssueIDBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, assetIssueID_); } if (withdrawAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, withdrawAmount_); } if (unfreezeAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, unfreezeAmount_); } if (exchangeReceivedAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, exchangeReceivedAmount_); } if (exchangeInjectAnotherAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, exchangeInjectAnotherAmount_); } if (exchangeWithdrawAnotherAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(20, exchangeWithdrawAnotherAmount_); } if (exchangeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, exchangeId_); } if (shieldedTransactionFee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, shieldedTransactionFee_); } 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.vision.visionjsdk.proto.Chain.Transaction.Result)) { return super.equals(obj); } org.vision.visionjsdk.proto.Chain.Transaction.Result other = (org.vision.visionjsdk.proto.Chain.Transaction.Result) obj; if (getFee() != other.getFee()) return false; if (ret_ != other.ret_) return false; if (contractRet_ != other.contractRet_) return false; if (!getAssetIssueID() .equals(other.getAssetIssueID())) return false; if (getWithdrawAmount() != other.getWithdrawAmount()) return false; if (getUnfreezeAmount() != other.getUnfreezeAmount()) return false; if (getExchangeReceivedAmount() != other.getExchangeReceivedAmount()) return false; if (getExchangeInjectAnotherAmount() != other.getExchangeInjectAnotherAmount()) return false; if (getExchangeWithdrawAnotherAmount() != other.getExchangeWithdrawAnotherAmount()) return false; if (getExchangeId() != other.getExchangeId()) return false; if (getShieldedTransactionFee() != other.getShieldedTransactionFee()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFee()); hash = (37 * hash) + RET_FIELD_NUMBER; hash = (53 * hash) + ret_; hash = (37 * hash) + CONTRACTRET_FIELD_NUMBER; hash = (53 * hash) + contractRet_; hash = (37 * hash) + ASSETISSUEID_FIELD_NUMBER; hash = (53 * hash) + getAssetIssueID().hashCode(); hash = (37 * hash) + WITHDRAW_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWithdrawAmount()); hash = (37 * hash) + UNFREEZE_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnfreezeAmount()); hash = (37 * hash) + EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeReceivedAmount()); hash = (37 * hash) + EXCHANGE_INJECT_ANOTHER_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeInjectAnotherAmount()); hash = (37 * hash) + EXCHANGE_WITHDRAW_ANOTHER_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeWithdrawAnotherAmount()); hash = (37 * hash) + EXCHANGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeId()); hash = (37 * hash) + SHIELDED_TRANSACTION_FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getShieldedTransactionFee()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result 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.vision.visionjsdk.proto.Chain.Transaction.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result 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.vision.visionjsdk.proto.Chain.Transaction.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result 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.vision.visionjsdk.proto.Chain.Transaction.Result 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 protocol.Transaction.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Transaction.Result) org.vision.visionjsdk.proto.Chain.Transaction.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.Result.class, org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder.class); } // Construct using org.vision.visionjsdk.proto.Chain.Transaction.Result.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(); fee_ = 0L; ret_ = 0; contractRet_ = 0; assetIssueID_ = ""; withdrawAmount_ = 0L; unfreezeAmount_ = 0L; exchangeReceivedAmount_ = 0L; exchangeInjectAnotherAmount_ = 0L; exchangeWithdrawAnotherAmount_ = 0L; exchangeId_ = 0L; shieldedTransactionFee_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_Result_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Chain.Transaction.Result.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result build() { org.vision.visionjsdk.proto.Chain.Transaction.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result buildPartial() { org.vision.visionjsdk.proto.Chain.Transaction.Result result = new org.vision.visionjsdk.proto.Chain.Transaction.Result(this); result.fee_ = fee_; result.ret_ = ret_; result.contractRet_ = contractRet_; result.assetIssueID_ = assetIssueID_; result.withdrawAmount_ = withdrawAmount_; result.unfreezeAmount_ = unfreezeAmount_; result.exchangeReceivedAmount_ = exchangeReceivedAmount_; result.exchangeInjectAnotherAmount_ = exchangeInjectAnotherAmount_; result.exchangeWithdrawAnotherAmount_ = exchangeWithdrawAnotherAmount_; result.exchangeId_ = exchangeId_; result.shieldedTransactionFee_ = shieldedTransactionFee_; 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.vision.visionjsdk.proto.Chain.Transaction.Result) { return mergeFrom((org.vision.visionjsdk.proto.Chain.Transaction.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Chain.Transaction.Result other) { if (other == org.vision.visionjsdk.proto.Chain.Transaction.Result.getDefaultInstance()) return this; if (other.getFee() != 0L) { setFee(other.getFee()); } if (other.ret_ != 0) { setRetValue(other.getRetValue()); } if (other.contractRet_ != 0) { setContractRetValue(other.getContractRetValue()); } if (!other.getAssetIssueID().isEmpty()) { assetIssueID_ = other.assetIssueID_; onChanged(); } if (other.getWithdrawAmount() != 0L) { setWithdrawAmount(other.getWithdrawAmount()); } if (other.getUnfreezeAmount() != 0L) { setUnfreezeAmount(other.getUnfreezeAmount()); } if (other.getExchangeReceivedAmount() != 0L) { setExchangeReceivedAmount(other.getExchangeReceivedAmount()); } if (other.getExchangeInjectAnotherAmount() != 0L) { setExchangeInjectAnotherAmount(other.getExchangeInjectAnotherAmount()); } if (other.getExchangeWithdrawAnotherAmount() != 0L) { setExchangeWithdrawAnotherAmount(other.getExchangeWithdrawAnotherAmount()); } if (other.getExchangeId() != 0L) { setExchangeId(other.getExchangeId()); } if (other.getShieldedTransactionFee() != 0L) { setShieldedTransactionFee(other.getShieldedTransactionFee()); } 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.vision.visionjsdk.proto.Chain.Transaction.Result parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Chain.Transaction.Result) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long fee_ ; /** * int64 fee = 1; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } /** * int64 fee = 1; * @param value The fee to set. * @return This builder for chaining. */ public Builder setFee(long value) { fee_ = value; onChanged(); return this; } /** * int64 fee = 1; * @return This builder for chaining. */ public Builder clearFee() { fee_ = 0L; onChanged(); return this; } private int ret_ = 0; /** * .protocol.Transaction.Result.code ret = 2; * @return The enum numeric value on the wire for ret. */ @java.lang.Override public int getRetValue() { return ret_; } /** * .protocol.Transaction.Result.code ret = 2; * @param value The enum numeric value on the wire for ret to set. * @return This builder for chaining. */ public Builder setRetValue(int value) { ret_ = value; onChanged(); return this; } /** * .protocol.Transaction.Result.code ret = 2; * @return The ret. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result.code getRet() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Result.code result = org.vision.visionjsdk.proto.Chain.Transaction.Result.code.valueOf(ret_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Result.code.UNRECOGNIZED : result; } /** * .protocol.Transaction.Result.code ret = 2; * @param value The ret to set. * @return This builder for chaining. */ public Builder setRet(org.vision.visionjsdk.proto.Chain.Transaction.Result.code value) { if (value == null) { throw new NullPointerException(); } ret_ = value.getNumber(); onChanged(); return this; } /** * .protocol.Transaction.Result.code ret = 2; * @return This builder for chaining. */ public Builder clearRet() { ret_ = 0; onChanged(); return this; } private int contractRet_ = 0; /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @return The enum numeric value on the wire for contractRet. */ @java.lang.Override public int getContractRetValue() { return contractRet_; } /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @param value The enum numeric value on the wire for contractRet to set. * @return This builder for chaining. */ public Builder setContractRetValue(int value) { contractRet_ = value; onChanged(); return this; } /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @return The contractRet. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getContractRet() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult result = org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.valueOf(contractRet_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.UNRECOGNIZED : result; } /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @param value The contractRet to set. * @return This builder for chaining. */ public Builder setContractRet(org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult value) { if (value == null) { throw new NullPointerException(); } contractRet_ = value.getNumber(); onChanged(); return this; } /** * .protocol.Transaction.Result.contractResult contractRet = 3; * @return This builder for chaining. */ public Builder clearContractRet() { contractRet_ = 0; onChanged(); return this; } private java.lang.Object assetIssueID_ = ""; /** * string assetIssueID = 14; * @return The assetIssueID. */ public java.lang.String getAssetIssueID() { java.lang.Object ref = assetIssueID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetIssueID_ = s; return s; } else { return (java.lang.String) ref; } } /** * string assetIssueID = 14; * @return The bytes for assetIssueID. */ public com.google.protobuf.ByteString getAssetIssueIDBytes() { java.lang.Object ref = assetIssueID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetIssueID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string assetIssueID = 14; * @param value The assetIssueID to set. * @return This builder for chaining. */ public Builder setAssetIssueID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } assetIssueID_ = value; onChanged(); return this; } /** * string assetIssueID = 14; * @return This builder for chaining. */ public Builder clearAssetIssueID() { assetIssueID_ = getDefaultInstance().getAssetIssueID(); onChanged(); return this; } /** * string assetIssueID = 14; * @param value The bytes for assetIssueID to set. * @return This builder for chaining. */ public Builder setAssetIssueIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetIssueID_ = value; onChanged(); return this; } private long withdrawAmount_ ; /** * int64 withdraw_amount = 15; * @return The withdrawAmount. */ @java.lang.Override public long getWithdrawAmount() { return withdrawAmount_; } /** * int64 withdraw_amount = 15; * @param value The withdrawAmount to set. * @return This builder for chaining. */ public Builder setWithdrawAmount(long value) { withdrawAmount_ = value; onChanged(); return this; } /** * int64 withdraw_amount = 15; * @return This builder for chaining. */ public Builder clearWithdrawAmount() { withdrawAmount_ = 0L; onChanged(); return this; } private long unfreezeAmount_ ; /** * int64 unfreeze_amount = 16; * @return The unfreezeAmount. */ @java.lang.Override public long getUnfreezeAmount() { return unfreezeAmount_; } /** * int64 unfreeze_amount = 16; * @param value The unfreezeAmount to set. * @return This builder for chaining. */ public Builder setUnfreezeAmount(long value) { unfreezeAmount_ = value; onChanged(); return this; } /** * int64 unfreeze_amount = 16; * @return This builder for chaining. */ public Builder clearUnfreezeAmount() { unfreezeAmount_ = 0L; onChanged(); return this; } private long exchangeReceivedAmount_ ; /** * int64 exchange_received_amount = 18; * @return The exchangeReceivedAmount. */ @java.lang.Override public long getExchangeReceivedAmount() { return exchangeReceivedAmount_; } /** * int64 exchange_received_amount = 18; * @param value The exchangeReceivedAmount to set. * @return This builder for chaining. */ public Builder setExchangeReceivedAmount(long value) { exchangeReceivedAmount_ = value; onChanged(); return this; } /** * int64 exchange_received_amount = 18; * @return This builder for chaining. */ public Builder clearExchangeReceivedAmount() { exchangeReceivedAmount_ = 0L; onChanged(); return this; } private long exchangeInjectAnotherAmount_ ; /** * int64 exchange_inject_another_amount = 19; * @return The exchangeInjectAnotherAmount. */ @java.lang.Override public long getExchangeInjectAnotherAmount() { return exchangeInjectAnotherAmount_; } /** * int64 exchange_inject_another_amount = 19; * @param value The exchangeInjectAnotherAmount to set. * @return This builder for chaining. */ public Builder setExchangeInjectAnotherAmount(long value) { exchangeInjectAnotherAmount_ = value; onChanged(); return this; } /** * int64 exchange_inject_another_amount = 19; * @return This builder for chaining. */ public Builder clearExchangeInjectAnotherAmount() { exchangeInjectAnotherAmount_ = 0L; onChanged(); return this; } private long exchangeWithdrawAnotherAmount_ ; /** * int64 exchange_withdraw_another_amount = 20; * @return The exchangeWithdrawAnotherAmount. */ @java.lang.Override public long getExchangeWithdrawAnotherAmount() { return exchangeWithdrawAnotherAmount_; } /** * int64 exchange_withdraw_another_amount = 20; * @param value The exchangeWithdrawAnotherAmount to set. * @return This builder for chaining. */ public Builder setExchangeWithdrawAnotherAmount(long value) { exchangeWithdrawAnotherAmount_ = value; onChanged(); return this; } /** * int64 exchange_withdraw_another_amount = 20; * @return This builder for chaining. */ public Builder clearExchangeWithdrawAnotherAmount() { exchangeWithdrawAnotherAmount_ = 0L; onChanged(); return this; } private long exchangeId_ ; /** * int64 exchange_id = 21; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } /** * int64 exchange_id = 21; * @param value The exchangeId to set. * @return This builder for chaining. */ public Builder setExchangeId(long value) { exchangeId_ = value; onChanged(); return this; } /** * int64 exchange_id = 21; * @return This builder for chaining. */ public Builder clearExchangeId() { exchangeId_ = 0L; onChanged(); return this; } private long shieldedTransactionFee_ ; /** * int64 shielded_transaction_fee = 22; * @return The shieldedTransactionFee. */ @java.lang.Override public long getShieldedTransactionFee() { return shieldedTransactionFee_; } /** * int64 shielded_transaction_fee = 22; * @param value The shieldedTransactionFee to set. * @return This builder for chaining. */ public Builder setShieldedTransactionFee(long value) { shieldedTransactionFee_ = value; onChanged(); return this; } /** * int64 shielded_transaction_fee = 22; * @return This builder for chaining. */ public Builder clearShieldedTransactionFee() { shieldedTransactionFee_ = 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:protocol.Transaction.Result) } // @@protoc_insertion_point(class_scope:protocol.Transaction.Result) private static final org.vision.visionjsdk.proto.Chain.Transaction.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Chain.Transaction.Result(); } public static org.vision.visionjsdk.proto.Chain.Transaction.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Result(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.vision.visionjsdk.proto.Chain.Transaction.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface rawOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Transaction.raw) com.google.protobuf.MessageOrBuilder { /** * bytes ref_block_bytes = 1; * @return The refBlockBytes. */ com.google.protobuf.ByteString getRefBlockBytes(); /** * int64 ref_block_num = 3; * @return The refBlockNum. */ long getRefBlockNum(); /** * bytes ref_block_hash = 4; * @return The refBlockHash. */ com.google.protobuf.ByteString getRefBlockHash(); /** * int64 expiration = 8; * @return The expiration. */ long getExpiration(); /** * repeated .protocol.authority auths = 9; * @return list */ java.util.List getAuthsList(); /** * repeated .protocol.authority auths = 9; * @param index index * @return org.vision.visionjsdk.proto.Common.authority */ org.vision.visionjsdk.proto.Common.authority getAuths(int index); /** * repeated .protocol.authority auths = 9; * @return int */ int getAuthsCount(); /** * repeated .protocol.authority auths = 9; * @return list */ java.util.List getAuthsOrBuilderList(); /** * repeated .protocol.authority auths = 9; * @param index index * @return org.vision.visionjsdk.proto.Common.authorityOrBuilde */ org.vision.visionjsdk.proto.Common.authorityOrBuilder getAuthsOrBuilder( int index); /** *
       * transaction note
       * 
* * bytes data = 10; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; * @return list */ java.util.List getContractList(); /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @return Contract */ org.vision.visionjsdk.proto.Chain.Transaction.Contract getContract(int index); /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; * @return int */ int getContractCount(); /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; * @return list */ java.util.List getContractOrBuilderList(); /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @return ContractOrBuilder */ org.vision.visionjsdk.proto.Chain.Transaction.ContractOrBuilder getContractOrBuilder( int index); /** *
       * scripts not used
       * 
* * bytes scripts = 12; * @return The scripts. */ com.google.protobuf.ByteString getScripts(); /** * int64 timestamp = 14; * @return The timestamp. */ long getTimestamp(); /** * int64 fee_limit = 18; * @return The feeLimit. */ long getFeeLimit(); } /** * Protobuf type {@code protocol.Transaction.raw} */ public static final class raw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Transaction.raw) rawOrBuilder { private static final long serialVersionUID = 0L; // Use raw.newBuilder() to construct. private raw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private raw() { refBlockBytes_ = com.google.protobuf.ByteString.EMPTY; refBlockHash_ = com.google.protobuf.ByteString.EMPTY; auths_ = java.util.Collections.emptyList(); data_ = com.google.protobuf.ByteString.EMPTY; contract_ = java.util.Collections.emptyList(); scripts_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new raw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private raw( 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: { refBlockBytes_ = input.readBytes(); break; } case 24: { refBlockNum_ = input.readInt64(); break; } case 34: { refBlockHash_ = input.readBytes(); break; } case 64: { expiration_ = input.readInt64(); break; } case 74: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { auths_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } auths_.add( input.readMessage(org.vision.visionjsdk.proto.Common.authority.parser(), extensionRegistry)); break; } case 82: { data_ = input.readBytes(); break; } case 90: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { contract_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } contract_.add( input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.Contract.parser(), extensionRegistry)); break; } case 98: { scripts_ = input.readBytes(); break; } case 112: { timestamp_ = input.readInt64(); break; } case 144: { feeLimit_ = input.readInt64(); 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)) { auths_ = java.util.Collections.unmodifiableList(auths_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { contract_ = java.util.Collections.unmodifiableList(contract_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_raw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_raw_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.raw.class, org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder.class); } public static final int REF_BLOCK_BYTES_FIELD_NUMBER = 1; private com.google.protobuf.ByteString refBlockBytes_; /** * bytes ref_block_bytes = 1; * @return The refBlockBytes. */ @java.lang.Override public com.google.protobuf.ByteString getRefBlockBytes() { return refBlockBytes_; } public static final int REF_BLOCK_NUM_FIELD_NUMBER = 3; private long refBlockNum_; /** * int64 ref_block_num = 3; * @return The refBlockNum. */ @java.lang.Override public long getRefBlockNum() { return refBlockNum_; } public static final int REF_BLOCK_HASH_FIELD_NUMBER = 4; private com.google.protobuf.ByteString refBlockHash_; /** * bytes ref_block_hash = 4; * @return The refBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getRefBlockHash() { return refBlockHash_; } public static final int EXPIRATION_FIELD_NUMBER = 8; private long expiration_; /** * int64 expiration = 8; * @return The expiration. */ @java.lang.Override public long getExpiration() { return expiration_; } public static final int AUTHS_FIELD_NUMBER = 9; private java.util.List auths_; /** * repeated .protocol.authority auths = 9; */ @java.lang.Override public java.util.List getAuthsList() { return auths_; } /** * repeated .protocol.authority auths = 9; */ @java.lang.Override public java.util.List getAuthsOrBuilderList() { return auths_; } /** * repeated .protocol.authority auths = 9; */ @java.lang.Override public int getAuthsCount() { return auths_.size(); } /** * repeated .protocol.authority auths = 9; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.authority getAuths(int index) { return auths_.get(index); } /** * repeated .protocol.authority auths = 9; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.authorityOrBuilder getAuthsOrBuilder( int index) { return auths_.get(index); } public static final int DATA_FIELD_NUMBER = 10; private com.google.protobuf.ByteString data_; /** *
       * transaction note
       * 
* * bytes data = 10; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int CONTRACT_FIELD_NUMBER = 11; private java.util.List contract_; /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; */ @java.lang.Override public java.util.List getContractList() { return contract_; } /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; */ @java.lang.Override public java.util.List getContractOrBuilderList() { return contract_; } /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; */ @java.lang.Override public int getContractCount() { return contract_.size(); } /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Contract getContract(int index) { return contract_.get(index); } /** *
       * only support size = 1, repeated list here for extension
       * 
* * repeated .protocol.Transaction.Contract contract = 11; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.ContractOrBuilder getContractOrBuilder( int index) { return contract_.get(index); } public static final int SCRIPTS_FIELD_NUMBER = 12; private com.google.protobuf.ByteString scripts_; /** *
       * scripts not used
       * 
* * bytes scripts = 12; * @return The scripts. */ @java.lang.Override public com.google.protobuf.ByteString getScripts() { return scripts_; } public static final int TIMESTAMP_FIELD_NUMBER = 14; private long timestamp_; /** * int64 timestamp = 14; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int FEE_LIMIT_FIELD_NUMBER = 18; private long feeLimit_; /** * int64 fee_limit = 18; * @return The feeLimit. */ @java.lang.Override public long getFeeLimit() { return feeLimit_; } 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 (!refBlockBytes_.isEmpty()) { output.writeBytes(1, refBlockBytes_); } if (refBlockNum_ != 0L) { output.writeInt64(3, refBlockNum_); } if (!refBlockHash_.isEmpty()) { output.writeBytes(4, refBlockHash_); } if (expiration_ != 0L) { output.writeInt64(8, expiration_); } for (int i = 0; i < auths_.size(); i++) { output.writeMessage(9, auths_.get(i)); } if (!data_.isEmpty()) { output.writeBytes(10, data_); } for (int i = 0; i < contract_.size(); i++) { output.writeMessage(11, contract_.get(i)); } if (!scripts_.isEmpty()) { output.writeBytes(12, scripts_); } if (timestamp_ != 0L) { output.writeInt64(14, timestamp_); } if (feeLimit_ != 0L) { output.writeInt64(18, feeLimit_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!refBlockBytes_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, refBlockBytes_); } if (refBlockNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, refBlockNum_); } if (!refBlockHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, refBlockHash_); } if (expiration_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, expiration_); } for (int i = 0; i < auths_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, auths_.get(i)); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, data_); } for (int i = 0; i < contract_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, contract_.get(i)); } if (!scripts_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, scripts_); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, timestamp_); } if (feeLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, feeLimit_); } 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.vision.visionjsdk.proto.Chain.Transaction.raw)) { return super.equals(obj); } org.vision.visionjsdk.proto.Chain.Transaction.raw other = (org.vision.visionjsdk.proto.Chain.Transaction.raw) obj; if (!getRefBlockBytes() .equals(other.getRefBlockBytes())) return false; if (getRefBlockNum() != other.getRefBlockNum()) return false; if (!getRefBlockHash() .equals(other.getRefBlockHash())) return false; if (getExpiration() != other.getExpiration()) return false; if (!getAuthsList() .equals(other.getAuthsList())) return false; if (!getData() .equals(other.getData())) return false; if (!getContractList() .equals(other.getContractList())) return false; if (!getScripts() .equals(other.getScripts())) return false; if (getTimestamp() != other.getTimestamp()) return false; if (getFeeLimit() != other.getFeeLimit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REF_BLOCK_BYTES_FIELD_NUMBER; hash = (53 * hash) + getRefBlockBytes().hashCode(); hash = (37 * hash) + REF_BLOCK_NUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRefBlockNum()); hash = (37 * hash) + REF_BLOCK_HASH_FIELD_NUMBER; hash = (53 * hash) + getRefBlockHash().hashCode(); hash = (37 * hash) + EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpiration()); if (getAuthsCount() > 0) { hash = (37 * hash) + AUTHS_FIELD_NUMBER; hash = (53 * hash) + getAuthsList().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (getContractCount() > 0) { hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContractList().hashCode(); } hash = (37 * hash) + SCRIPTS_FIELD_NUMBER; hash = (53 * hash) + getScripts().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + FEE_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFeeLimit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw 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.vision.visionjsdk.proto.Chain.Transaction.raw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw 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.vision.visionjsdk.proto.Chain.Transaction.raw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw 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.vision.visionjsdk.proto.Chain.Transaction.raw 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 protocol.Transaction.raw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Transaction.raw) org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_raw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_raw_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.raw.class, org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder.class); } // Construct using org.vision.visionjsdk.proto.Chain.Transaction.raw.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAuthsFieldBuilder(); getContractFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); refBlockBytes_ = com.google.protobuf.ByteString.EMPTY; refBlockNum_ = 0L; refBlockHash_ = com.google.protobuf.ByteString.EMPTY; expiration_ = 0L; if (authsBuilder_ == null) { auths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { authsBuilder_.clear(); } data_ = com.google.protobuf.ByteString.EMPTY; if (contractBuilder_ == null) { contract_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { contractBuilder_.clear(); } scripts_ = com.google.protobuf.ByteString.EMPTY; timestamp_ = 0L; feeLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_raw_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.raw getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Chain.Transaction.raw.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.raw build() { org.vision.visionjsdk.proto.Chain.Transaction.raw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.raw buildPartial() { org.vision.visionjsdk.proto.Chain.Transaction.raw result = new org.vision.visionjsdk.proto.Chain.Transaction.raw(this); int from_bitField0_ = bitField0_; result.refBlockBytes_ = refBlockBytes_; result.refBlockNum_ = refBlockNum_; result.refBlockHash_ = refBlockHash_; result.expiration_ = expiration_; if (authsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { auths_ = java.util.Collections.unmodifiableList(auths_); bitField0_ = (bitField0_ & ~0x00000001); } result.auths_ = auths_; } else { result.auths_ = authsBuilder_.build(); } result.data_ = data_; if (contractBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { contract_ = java.util.Collections.unmodifiableList(contract_); bitField0_ = (bitField0_ & ~0x00000002); } result.contract_ = contract_; } else { result.contract_ = contractBuilder_.build(); } result.scripts_ = scripts_; result.timestamp_ = timestamp_; result.feeLimit_ = feeLimit_; 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.vision.visionjsdk.proto.Chain.Transaction.raw) { return mergeFrom((org.vision.visionjsdk.proto.Chain.Transaction.raw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Chain.Transaction.raw other) { if (other == org.vision.visionjsdk.proto.Chain.Transaction.raw.getDefaultInstance()) return this; if (other.getRefBlockBytes() != com.google.protobuf.ByteString.EMPTY) { setRefBlockBytes(other.getRefBlockBytes()); } if (other.getRefBlockNum() != 0L) { setRefBlockNum(other.getRefBlockNum()); } if (other.getRefBlockHash() != com.google.protobuf.ByteString.EMPTY) { setRefBlockHash(other.getRefBlockHash()); } if (other.getExpiration() != 0L) { setExpiration(other.getExpiration()); } if (authsBuilder_ == null) { if (!other.auths_.isEmpty()) { if (auths_.isEmpty()) { auths_ = other.auths_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAuthsIsMutable(); auths_.addAll(other.auths_); } onChanged(); } } else { if (!other.auths_.isEmpty()) { if (authsBuilder_.isEmpty()) { authsBuilder_.dispose(); authsBuilder_ = null; auths_ = other.auths_; bitField0_ = (bitField0_ & ~0x00000001); authsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAuthsFieldBuilder() : null; } else { authsBuilder_.addAllMessages(other.auths_); } } } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (contractBuilder_ == null) { if (!other.contract_.isEmpty()) { if (contract_.isEmpty()) { contract_ = other.contract_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureContractIsMutable(); contract_.addAll(other.contract_); } onChanged(); } } else { if (!other.contract_.isEmpty()) { if (contractBuilder_.isEmpty()) { contractBuilder_.dispose(); contractBuilder_ = null; contract_ = other.contract_; bitField0_ = (bitField0_ & ~0x00000002); contractBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContractFieldBuilder() : null; } else { contractBuilder_.addAllMessages(other.contract_); } } } if (other.getScripts() != com.google.protobuf.ByteString.EMPTY) { setScripts(other.getScripts()); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getFeeLimit() != 0L) { setFeeLimit(other.getFeeLimit()); } 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.vision.visionjsdk.proto.Chain.Transaction.raw parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Chain.Transaction.raw) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString refBlockBytes_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ref_block_bytes = 1; * @return The refBlockBytes. */ @java.lang.Override public com.google.protobuf.ByteString getRefBlockBytes() { return refBlockBytes_; } /** * bytes ref_block_bytes = 1; * @param value The refBlockBytes to set. * @return This builder for chaining. */ public Builder setRefBlockBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } refBlockBytes_ = value; onChanged(); return this; } /** * bytes ref_block_bytes = 1; * @return This builder for chaining. */ public Builder clearRefBlockBytes() { refBlockBytes_ = getDefaultInstance().getRefBlockBytes(); onChanged(); return this; } private long refBlockNum_ ; /** * int64 ref_block_num = 3; * @return The refBlockNum. */ @java.lang.Override public long getRefBlockNum() { return refBlockNum_; } /** * int64 ref_block_num = 3; * @param value The refBlockNum to set. * @return This builder for chaining. */ public Builder setRefBlockNum(long value) { refBlockNum_ = value; onChanged(); return this; } /** * int64 ref_block_num = 3; * @return This builder for chaining. */ public Builder clearRefBlockNum() { refBlockNum_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString refBlockHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ref_block_hash = 4; * @return The refBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getRefBlockHash() { return refBlockHash_; } /** * bytes ref_block_hash = 4; * @param value The refBlockHash to set. * @return This builder for chaining. */ public Builder setRefBlockHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } refBlockHash_ = value; onChanged(); return this; } /** * bytes ref_block_hash = 4; * @return This builder for chaining. */ public Builder clearRefBlockHash() { refBlockHash_ = getDefaultInstance().getRefBlockHash(); onChanged(); return this; } private long expiration_ ; /** * int64 expiration = 8; * @return The expiration. */ @java.lang.Override public long getExpiration() { return expiration_; } /** * int64 expiration = 8; * @param value The expiration to set. * @return This builder for chaining. */ public Builder setExpiration(long value) { expiration_ = value; onChanged(); return this; } /** * int64 expiration = 8; * @return This builder for chaining. */ public Builder clearExpiration() { expiration_ = 0L; onChanged(); return this; } private java.util.List auths_ = java.util.Collections.emptyList(); private void ensureAuthsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { auths_ = new java.util.ArrayList(auths_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.authority, org.vision.visionjsdk.proto.Common.authority.Builder, org.vision.visionjsdk.proto.Common.authorityOrBuilder> authsBuilder_; /** * repeated .protocol.authority auths = 9; * @return org.vision.visionjsdk.proto.Common.authority */ public java.util.List getAuthsList() { if (authsBuilder_ == null) { return java.util.Collections.unmodifiableList(auths_); } else { return authsBuilder_.getMessageList(); } } /** * repeated .protocol.authority auths = 9; * @return int */ public int getAuthsCount() { if (authsBuilder_ == null) { return auths_.size(); } else { return authsBuilder_.getCount(); } } /** * repeated .protocol.authority auths = 9; * @param index index * @return authority */ public org.vision.visionjsdk.proto.Common.authority getAuths(int index) { if (authsBuilder_ == null) { return auths_.get(index); } else { return authsBuilder_.getMessage(index); } } /** * repeated .protocol.authority auths = 9; * @param index index * @param value value * @return Builder */ public Builder setAuths( int index, org.vision.visionjsdk.proto.Common.authority value) { if (authsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAuthsIsMutable(); auths_.set(index, value); onChanged(); } else { authsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.authority auths = 9; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setAuths( int index, org.vision.visionjsdk.proto.Common.authority.Builder builderForValue) { if (authsBuilder_ == null) { ensureAuthsIsMutable(); auths_.set(index, builderForValue.build()); onChanged(); } else { authsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.authority auths = 9; * @param value value * @return Builder */ public Builder addAuths(org.vision.visionjsdk.proto.Common.authority value) { if (authsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAuthsIsMutable(); auths_.add(value); onChanged(); } else { authsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.authority auths = 9; * @param index index * @param value value * @return Builder */ public Builder addAuths( int index, org.vision.visionjsdk.proto.Common.authority value) { if (authsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAuthsIsMutable(); auths_.add(index, value); onChanged(); } else { authsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.authority auths = 9; * @param builderForValue builderForValue * @return Builder */ public Builder addAuths( org.vision.visionjsdk.proto.Common.authority.Builder builderForValue) { if (authsBuilder_ == null) { ensureAuthsIsMutable(); auths_.add(builderForValue.build()); onChanged(); } else { authsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.authority auths = 9; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addAuths( int index, org.vision.visionjsdk.proto.Common.authority.Builder builderForValue) { if (authsBuilder_ == null) { ensureAuthsIsMutable(); auths_.add(index, builderForValue.build()); onChanged(); } else { authsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.authority auths = 9; * @param values values * @return Builder */ public Builder addAllAuths( java.lang.Iterable values) { if (authsBuilder_ == null) { ensureAuthsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, auths_); onChanged(); } else { authsBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.authority auths = 9; * @return Builder */ public Builder clearAuths() { if (authsBuilder_ == null) { auths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { authsBuilder_.clear(); } return this; } /** * repeated .protocol.authority auths = 9; * @param index index * @return Builder */ public Builder removeAuths(int index) { if (authsBuilder_ == null) { ensureAuthsIsMutable(); auths_.remove(index); onChanged(); } else { authsBuilder_.remove(index); } return this; } /** * repeated .protocol.authority auths = 9; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Common.authority.Builder getAuthsBuilder( int index) { return getAuthsFieldBuilder().getBuilder(index); } /** * repeated .protocol.authority auths = 9; * @param index index * @return org.vision.visionjsdk.proto.Common.authorityOrBuilder */ public org.vision.visionjsdk.proto.Common.authorityOrBuilder getAuthsOrBuilder( int index) { if (authsBuilder_ == null) { return auths_.get(index); } else { return authsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.authority auths = 9; * @return list */ public java.util.List getAuthsOrBuilderList() { if (authsBuilder_ != null) { return authsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(auths_); } } /** * repeated .protocol.authority auths = 9; * @return Builder */ public org.vision.visionjsdk.proto.Common.authority.Builder addAuthsBuilder() { return getAuthsFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Common.authority.getDefaultInstance()); } /** * repeated .protocol.authority auths = 9; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Common.authority.Builder addAuthsBuilder( int index) { return getAuthsFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Common.authority.getDefaultInstance()); } /** * repeated .protocol.authority auths = 9; * @return list */ public java.util.List getAuthsBuilderList() { return getAuthsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.authority, org.vision.visionjsdk.proto.Common.authority.Builder, org.vision.visionjsdk.proto.Common.authorityOrBuilder> getAuthsFieldBuilder() { if (authsBuilder_ == null) { authsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.authority, org.vision.visionjsdk.proto.Common.authority.Builder, org.vision.visionjsdk.proto.Common.authorityOrBuilder>( auths_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); auths_ = null; } return authsBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
         * transaction note
         * 
* * bytes data = 10; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
         * transaction note
         * 
* * bytes data = 10; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
         * transaction note
         * 
* * bytes data = 10; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private java.util.List contract_ = java.util.Collections.emptyList(); private void ensureContractIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { contract_ = new java.util.ArrayList(contract_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.Contract, org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder, org.vision.visionjsdk.proto.Chain.Transaction.ContractOrBuilder> contractBuilder_; /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; */ public java.util.List getContractList() { if (contractBuilder_ == null) { return java.util.Collections.unmodifiableList(contract_); } else { return contractBuilder_.getMessageList(); } } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; */ public int getContractCount() { if (contractBuilder_ == null) { return contract_.size(); } else { return contractBuilder_.getCount(); } } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @return org.vision.visionjsdk.proto.Chain.Transaction.Contract */ public org.vision.visionjsdk.proto.Chain.Transaction.Contract getContract(int index) { if (contractBuilder_ == null) { return contract_.get(index); } else { return contractBuilder_.getMessage(index); } } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @param value value * @return Builder */ public Builder setContract( int index, org.vision.visionjsdk.proto.Chain.Transaction.Contract value) { if (contractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContractIsMutable(); contract_.set(index, value); onChanged(); } else { contractBuilder_.setMessage(index, value); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setContract( int index, org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder builderForValue) { if (contractBuilder_ == null) { ensureContractIsMutable(); contract_.set(index, builderForValue.build()); onChanged(); } else { contractBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param value value * @return Builder */ public Builder addContract(org.vision.visionjsdk.proto.Chain.Transaction.Contract value) { if (contractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContractIsMutable(); contract_.add(value); onChanged(); } else { contractBuilder_.addMessage(value); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @param value value * @return Builder */ public Builder addContract( int index, org.vision.visionjsdk.proto.Chain.Transaction.Contract value) { if (contractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContractIsMutable(); contract_.add(index, value); onChanged(); } else { contractBuilder_.addMessage(index, value); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param builderForValue builderForValue * @return Builder */ public Builder addContract( org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder builderForValue) { if (contractBuilder_ == null) { ensureContractIsMutable(); contract_.add(builderForValue.build()); onChanged(); } else { contractBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addContract( int index, org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder builderForValue) { if (contractBuilder_ == null) { ensureContractIsMutable(); contract_.add(index, builderForValue.build()); onChanged(); } else { contractBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param values values * @return Builder */ public Builder addAllContract( java.lang.Iterable values) { if (contractBuilder_ == null) { ensureContractIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contract_); onChanged(); } else { contractBuilder_.addAllMessages(values); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @return Builder */ public Builder clearContract() { if (contractBuilder_ == null) { contract_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { contractBuilder_.clear(); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @return Builder */ public Builder removeContract(int index) { if (contractBuilder_ == null) { ensureContractIsMutable(); contract_.remove(index); onChanged(); } else { contractBuilder_.remove(index); } return this; } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder getContractBuilder( int index) { return getContractFieldBuilder().getBuilder(index); } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @return ContractOrBuilder */ public org.vision.visionjsdk.proto.Chain.Transaction.ContractOrBuilder getContractOrBuilder( int index) { if (contractBuilder_ == null) { return contract_.get(index); } else { return contractBuilder_.getMessageOrBuilder(index); } } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @return list */ public java.util.List getContractOrBuilderList() { if (contractBuilder_ != null) { return contractBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(contract_); } } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder addContractBuilder() { return getContractFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Chain.Transaction.Contract.getDefaultInstance()); } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder addContractBuilder( int index) { return getContractFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Chain.Transaction.Contract.getDefaultInstance()); } /** *
         * only support size = 1, repeated list here for extension
         * 
* * repeated .protocol.Transaction.Contract contract = 11; * @return list */ public java.util.List getContractBuilderList() { return getContractFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.Contract, org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder, org.vision.visionjsdk.proto.Chain.Transaction.ContractOrBuilder> getContractFieldBuilder() { if (contractBuilder_ == null) { contractBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.Contract, org.vision.visionjsdk.proto.Chain.Transaction.Contract.Builder, org.vision.visionjsdk.proto.Chain.Transaction.ContractOrBuilder>( contract_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); contract_ = null; } return contractBuilder_; } private com.google.protobuf.ByteString scripts_ = com.google.protobuf.ByteString.EMPTY; /** *
         * scripts not used
         * 
* * bytes scripts = 12; * @return The scripts. */ @java.lang.Override public com.google.protobuf.ByteString getScripts() { return scripts_; } /** *
         * scripts not used
         * 
* * bytes scripts = 12; * @param value The scripts to set. * @return This builder for chaining. */ public Builder setScripts(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } scripts_ = value; onChanged(); return this; } /** *
         * scripts not used
         * 
* * bytes scripts = 12; * @return This builder for chaining. */ public Builder clearScripts() { scripts_ = getDefaultInstance().getScripts(); onChanged(); return this; } private long timestamp_ ; /** * int64 timestamp = 14; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 14; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** * int64 timestamp = 14; * @return This builder for chaining. */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private long feeLimit_ ; /** * int64 fee_limit = 18; * @return The feeLimit. */ @java.lang.Override public long getFeeLimit() { return feeLimit_; } /** * int64 fee_limit = 18; * @param value The feeLimit to set. * @return This builder for chaining. */ public Builder setFeeLimit(long value) { feeLimit_ = value; onChanged(); return this; } /** * int64 fee_limit = 18; * @return This builder for chaining. */ public Builder clearFeeLimit() { feeLimit_ = 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:protocol.Transaction.raw) } // @@protoc_insertion_point(class_scope:protocol.Transaction.raw) private static final org.vision.visionjsdk.proto.Chain.Transaction.raw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Chain.Transaction.raw(); } public static org.vision.visionjsdk.proto.Chain.Transaction.raw getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public raw parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new raw(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.vision.visionjsdk.proto.Chain.Transaction.raw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RAW_DATA_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Chain.Transaction.raw rawData_; /** * .protocol.Transaction.raw raw_data = 1; * @return Whether the rawData field is set. */ @java.lang.Override public boolean hasRawData() { return rawData_ != null; } /** * .protocol.Transaction.raw raw_data = 1; * @return The rawData. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.raw getRawData() { return rawData_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.raw.getDefaultInstance() : rawData_; } /** * .protocol.Transaction.raw raw_data = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder getRawDataOrBuilder() { return getRawData(); } public static final int SIGNATURE_FIELD_NUMBER = 2; private java.util.List signature_; /** *
     * only support size = 1, repeated list here for muti-sig extension
     * 
* * repeated bytes signature = 2; * @return A list containing the signature. */ @java.lang.Override public java.util.List getSignatureList() { return signature_; } /** *
     * only support size = 1, repeated list here for muti-sig extension
     * 
* * repeated bytes signature = 2; * @return The count of signature. */ public int getSignatureCount() { return signature_.size(); } /** *
     * only support size = 1, repeated list here for muti-sig extension
     * 
* * repeated bytes signature = 2; * @param index The index of the element to return. * @return The signature at the given index. */ public com.google.protobuf.ByteString getSignature(int index) { return signature_.get(index); } public static final int RET_FIELD_NUMBER = 5; private java.util.List ret_; /** * repeated .protocol.Transaction.Result ret = 5; */ @java.lang.Override public java.util.List getRetList() { return ret_; } /** * repeated .protocol.Transaction.Result ret = 5; */ @java.lang.Override public java.util.List getRetOrBuilderList() { return ret_; } /** * repeated .protocol.Transaction.Result ret = 5; */ @java.lang.Override public int getRetCount() { return ret_.size(); } /** * repeated .protocol.Transaction.Result ret = 5; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result getRet(int index) { return ret_.get(index); } /** * repeated .protocol.Transaction.Result ret = 5; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.ResultOrBuilder getRetOrBuilder( int index) { return ret_.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 (rawData_ != null) { output.writeMessage(1, getRawData()); } for (int i = 0; i < signature_.size(); i++) { output.writeBytes(2, signature_.get(i)); } for (int i = 0; i < ret_.size(); i++) { output.writeMessage(5, ret_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (rawData_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRawData()); } { int dataSize = 0; for (int i = 0; i < signature_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(signature_.get(i)); } size += dataSize; size += 1 * getSignatureList().size(); } for (int i = 0; i < ret_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, ret_.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.vision.visionjsdk.proto.Chain.Transaction)) { return super.equals(obj); } org.vision.visionjsdk.proto.Chain.Transaction other = (org.vision.visionjsdk.proto.Chain.Transaction) obj; if (hasRawData() != other.hasRawData()) return false; if (hasRawData()) { if (!getRawData() .equals(other.getRawData())) return false; } if (!getSignatureList() .equals(other.getSignatureList())) return false; if (!getRetList() .equals(other.getRetList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRawData()) { hash = (37 * hash) + RAW_DATA_FIELD_NUMBER; hash = (53 * hash) + getRawData().hashCode(); } if (getSignatureCount() > 0) { hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignatureList().hashCode(); } if (getRetCount() > 0) { hash = (37 * hash) + RET_FIELD_NUMBER; hash = (53 * hash) + getRetList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Chain.Transaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.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.vision.visionjsdk.proto.Chain.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.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.vision.visionjsdk.proto.Chain.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.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.vision.visionjsdk.proto.Chain.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.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.vision.visionjsdk.proto.Chain.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 protocol.Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Transaction) org.vision.visionjsdk.proto.Chain.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Transaction.class, org.vision.visionjsdk.proto.Chain.Transaction.Builder.class); } // Construct using org.vision.visionjsdk.proto.Chain.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) { getRetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rawDataBuilder_ == null) { rawData_ = null; } else { rawData_ = null; rawDataBuilder_ = null; } signature_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (retBuilder_ == null) { ret_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { retBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Transaction_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction build() { org.vision.visionjsdk.proto.Chain.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction buildPartial() { org.vision.visionjsdk.proto.Chain.Transaction result = new org.vision.visionjsdk.proto.Chain.Transaction(this); int from_bitField0_ = bitField0_; if (rawDataBuilder_ == null) { result.rawData_ = rawData_; } else { result.rawData_ = rawDataBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { signature_ = java.util.Collections.unmodifiableList(signature_); bitField0_ = (bitField0_ & ~0x00000001); } result.signature_ = signature_; if (retBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { ret_ = java.util.Collections.unmodifiableList(ret_); bitField0_ = (bitField0_ & ~0x00000002); } result.ret_ = ret_; } else { result.ret_ = retBuilder_.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.vision.visionjsdk.proto.Chain.Transaction) { return mergeFrom((org.vision.visionjsdk.proto.Chain.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Chain.Transaction other) { if (other == org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance()) return this; if (other.hasRawData()) { mergeRawData(other.getRawData()); } if (!other.signature_.isEmpty()) { if (signature_.isEmpty()) { signature_ = other.signature_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSignatureIsMutable(); signature_.addAll(other.signature_); } onChanged(); } if (retBuilder_ == null) { if (!other.ret_.isEmpty()) { if (ret_.isEmpty()) { ret_ = other.ret_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRetIsMutable(); ret_.addAll(other.ret_); } onChanged(); } } else { if (!other.ret_.isEmpty()) { if (retBuilder_.isEmpty()) { retBuilder_.dispose(); retBuilder_ = null; ret_ = other.ret_; bitField0_ = (bitField0_ & ~0x00000002); retBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRetFieldBuilder() : null; } else { retBuilder_.addAllMessages(other.ret_); } } } 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.vision.visionjsdk.proto.Chain.Transaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Chain.Transaction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.vision.visionjsdk.proto.Chain.Transaction.raw rawData_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.raw, org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder, org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder> rawDataBuilder_; /** * .protocol.Transaction.raw raw_data = 1; * @return Whether the rawData field is set. */ public boolean hasRawData() { return rawDataBuilder_ != null || rawData_ != null; } /** * .protocol.Transaction.raw raw_data = 1; * @return The rawData. */ public org.vision.visionjsdk.proto.Chain.Transaction.raw getRawData() { if (rawDataBuilder_ == null) { return rawData_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.raw.getDefaultInstance() : rawData_; } else { return rawDataBuilder_.getMessage(); } } /** * .protocol.Transaction.raw raw_data = 1; * @param value value * @return Builder */ public Builder setRawData(org.vision.visionjsdk.proto.Chain.Transaction.raw value) { if (rawDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rawData_ = value; onChanged(); } else { rawDataBuilder_.setMessage(value); } return this; } /** * .protocol.Transaction.raw raw_data = 1; * @param builderForValue builderForValue * @return Builder */ public Builder setRawData( org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder builderForValue) { if (rawDataBuilder_ == null) { rawData_ = builderForValue.build(); onChanged(); } else { rawDataBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.Transaction.raw raw_data = 1; * @param value value * @return Builder */ public Builder mergeRawData(org.vision.visionjsdk.proto.Chain.Transaction.raw value) { if (rawDataBuilder_ == null) { if (rawData_ != null) { rawData_ = org.vision.visionjsdk.proto.Chain.Transaction.raw.newBuilder(rawData_).mergeFrom(value).buildPartial(); } else { rawData_ = value; } onChanged(); } else { rawDataBuilder_.mergeFrom(value); } return this; } /** * .protocol.Transaction.raw raw_data = 1; * @return Builder */ public Builder clearRawData() { if (rawDataBuilder_ == null) { rawData_ = null; onChanged(); } else { rawData_ = null; rawDataBuilder_ = null; } return this; } /** * .protocol.Transaction.raw raw_data = 1; * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder getRawDataBuilder() { onChanged(); return getRawDataFieldBuilder().getBuilder(); } /** * .protocol.Transaction.raw raw_data = 1; * @return org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder */ public org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder getRawDataOrBuilder() { if (rawDataBuilder_ != null) { return rawDataBuilder_.getMessageOrBuilder(); } else { return rawData_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.raw.getDefaultInstance() : rawData_; } } /** * .protocol.Transaction.raw raw_data = 1; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.raw, org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder, org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder> getRawDataFieldBuilder() { if (rawDataBuilder_ == null) { rawDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.raw, org.vision.visionjsdk.proto.Chain.Transaction.raw.Builder, org.vision.visionjsdk.proto.Chain.Transaction.rawOrBuilder>( getRawData(), getParentForChildren(), isClean()); rawData_ = null; } return rawDataBuilder_; } private java.util.List signature_ = java.util.Collections.emptyList(); private void ensureSignatureIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { signature_ = new java.util.ArrayList(signature_); bitField0_ |= 0x00000001; } } /** *
       * only support size = 1, repeated list here for muti-sig extension
       * 
* * repeated bytes signature = 2; * @return A list containing the signature. */ public java.util.List getSignatureList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(signature_) : signature_; } /** *
       * only support size = 1, repeated list here for muti-sig extension
       * 
* * repeated bytes signature = 2; * @return The count of signature. */ public int getSignatureCount() { return signature_.size(); } /** *
       * only support size = 1, repeated list here for muti-sig extension
       * 
* * repeated bytes signature = 2; * @param index The index of the element to return. * @return The signature at the given index. */ public com.google.protobuf.ByteString getSignature(int index) { return signature_.get(index); } /** *
       * only support size = 1, repeated list here for muti-sig extension
       * 
* * repeated bytes signature = 2; * @param index The index to set the value at. * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSignatureIsMutable(); signature_.set(index, value); onChanged(); return this; } /** *
       * only support size = 1, repeated list here for muti-sig extension
       * 
* * repeated bytes signature = 2; * @param value The signature to add. * @return This builder for chaining. */ public Builder addSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSignatureIsMutable(); signature_.add(value); onChanged(); return this; } /** *
       * only support size = 1, repeated list here for muti-sig extension
       * 
* * repeated bytes signature = 2; * @param values The signature to add. * @return This builder for chaining. */ public Builder addAllSignature( java.lang.Iterable values) { ensureSignatureIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signature_); onChanged(); return this; } /** *
       * only support size = 1, repeated list here for muti-sig extension
       * 
* * repeated bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List ret_ = java.util.Collections.emptyList(); private void ensureRetIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ret_ = new java.util.ArrayList(ret_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.Result, org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder, org.vision.visionjsdk.proto.Chain.Transaction.ResultOrBuilder> retBuilder_; /** * repeated .protocol.Transaction.Result ret = 5; */ public java.util.List getRetList() { if (retBuilder_ == null) { return java.util.Collections.unmodifiableList(ret_); } else { return retBuilder_.getMessageList(); } } /** * repeated .protocol.Transaction.Result ret = 5; */ public int getRetCount() { if (retBuilder_ == null) { return ret_.size(); } else { return retBuilder_.getCount(); } } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @return org.vision.visionjsdk.proto.Chain.Transaction.Result */ public org.vision.visionjsdk.proto.Chain.Transaction.Result getRet(int index) { if (retBuilder_ == null) { return ret_.get(index); } else { return retBuilder_.getMessage(index); } } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @param value value * @return Builder */ public Builder setRet( int index, org.vision.visionjsdk.proto.Chain.Transaction.Result value) { if (retBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRetIsMutable(); ret_.set(index, value); onChanged(); } else { retBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @param builderForValue value * @return Builder */ public Builder setRet( int index, org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder builderForValue) { if (retBuilder_ == null) { ensureRetIsMutable(); ret_.set(index, builderForValue.build()); onChanged(); } else { retBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param value value * @return Builder */ public Builder addRet(org.vision.visionjsdk.proto.Chain.Transaction.Result value) { if (retBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRetIsMutable(); ret_.add(value); onChanged(); } else { retBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @param value value * @return Builder */ public Builder addRet( int index, org.vision.visionjsdk.proto.Chain.Transaction.Result value) { if (retBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRetIsMutable(); ret_.add(index, value); onChanged(); } else { retBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param builderForValue builderForValue * @return Builder */ public Builder addRet( org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder builderForValue) { if (retBuilder_ == null) { ensureRetIsMutable(); ret_.add(builderForValue.build()); onChanged(); } else { retBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addRet( int index, org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder builderForValue) { if (retBuilder_ == null) { ensureRetIsMutable(); ret_.add(index, builderForValue.build()); onChanged(); } else { retBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param values values * @return Builder */ public Builder addAllRet( java.lang.Iterable values) { if (retBuilder_ == null) { ensureRetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ret_); onChanged(); } else { retBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @return Builder */ public Builder clearRet() { if (retBuilder_ == null) { ret_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { retBuilder_.clear(); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @return Builder */ public Builder removeRet(int index) { if (retBuilder_ == null) { ensureRetIsMutable(); ret_.remove(index); onChanged(); } else { retBuilder_.remove(index); } return this; } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder getRetBuilder( int index) { return getRetFieldBuilder().getBuilder(index); } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @return ResultOrBuilder */ public org.vision.visionjsdk.proto.Chain.Transaction.ResultOrBuilder getRetOrBuilder( int index) { if (retBuilder_ == null) { return ret_.get(index); } else { return retBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Transaction.Result ret = 5; * @return list */ public java.util.List getRetOrBuilderList() { if (retBuilder_ != null) { return retBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ret_); } } /** * repeated .protocol.Transaction.Result ret = 5; * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder addRetBuilder() { return getRetFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Chain.Transaction.Result.getDefaultInstance()); } /** * repeated .protocol.Transaction.Result ret = 5; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder addRetBuilder( int index) { return getRetFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Chain.Transaction.Result.getDefaultInstance()); } /** * repeated .protocol.Transaction.Result ret = 5; * @return list */ public java.util.List getRetBuilderList() { return getRetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.Result, org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder, org.vision.visionjsdk.proto.Chain.Transaction.ResultOrBuilder> getRetFieldBuilder() { if (retBuilder_ == null) { retBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction.Result, org.vision.visionjsdk.proto.Chain.Transaction.Result.Builder, org.vision.visionjsdk.proto.Chain.Transaction.ResultOrBuilder>( ret_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); ret_ = null; } return retBuilder_; } @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:protocol.Transaction) } // @@protoc_insertion_point(class_scope:protocol.Transaction) private static final org.vision.visionjsdk.proto.Chain.Transaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Chain.Transaction(); } public static org.vision.visionjsdk.proto.Chain.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.vision.visionjsdk.proto.Chain.Transaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.BlockHeader) com.google.protobuf.MessageOrBuilder { /** * .protocol.BlockHeader.raw raw_data = 1; * @return Whether the rawData field is set. */ boolean hasRawData(); /** * .protocol.BlockHeader.raw raw_data = 1; * @return The rawData. */ org.vision.visionjsdk.proto.Chain.BlockHeader.raw getRawData(); /** * .protocol.BlockHeader.raw raw_data = 1; * @return org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder */ org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder getRawDataOrBuilder(); /** * bytes witness_signature = 2; * @return The witnessSignature. */ com.google.protobuf.ByteString getWitnessSignature(); } /** * Protobuf type {@code protocol.BlockHeader} */ public static final class BlockHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.BlockHeader) BlockHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use BlockHeader.newBuilder() to construct. private BlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockHeader() { witnessSignature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockHeader(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockHeader( 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: { org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder subBuilder = null; if (rawData_ != null) { subBuilder = rawData_.toBuilder(); } rawData_ = input.readMessage(org.vision.visionjsdk.proto.Chain.BlockHeader.raw.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rawData_); rawData_ = subBuilder.buildPartial(); } break; } case 18: { witnessSignature_ = 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.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.BlockHeader.class, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder.class); } public interface rawOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.BlockHeader.raw) com.google.protobuf.MessageOrBuilder { /** * int64 timestamp = 1; * @return The timestamp. */ long getTimestamp(); /** * bytes txTrieRoot = 2; * @return The txTrieRoot. */ com.google.protobuf.ByteString getTxTrieRoot(); /** * bytes parentHash = 3; * @return The parentHash. */ com.google.protobuf.ByteString getParentHash(); /** *
       * bytes nonce = 5;
       * bytes difficulty = 6;
       * 
* * int64 number = 7; * @return The number. */ long getNumber(); /** * int64 witness_id = 8; * @return The witnessId. */ long getWitnessId(); /** * bytes witness_address = 9; * @return The witnessAddress. */ com.google.protobuf.ByteString getWitnessAddress(); /** * int32 version = 10; * @return The version. */ int getVersion(); /** * bytes accountStateRoot = 11; * @return The accountStateRoot. */ com.google.protobuf.ByteString getAccountStateRoot(); } /** * Protobuf type {@code protocol.BlockHeader.raw} */ public static final class raw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.BlockHeader.raw) rawOrBuilder { private static final long serialVersionUID = 0L; // Use raw.newBuilder() to construct. private raw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private raw() { txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; parentHash_ = com.google.protobuf.ByteString.EMPTY; witnessAddress_ = com.google.protobuf.ByteString.EMPTY; accountStateRoot_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new raw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private raw( 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 8: { timestamp_ = input.readInt64(); break; } case 18: { txTrieRoot_ = input.readBytes(); break; } case 26: { parentHash_ = input.readBytes(); break; } case 56: { number_ = input.readInt64(); break; } case 64: { witnessId_ = input.readInt64(); break; } case 74: { witnessAddress_ = input.readBytes(); break; } case 80: { version_ = input.readInt32(); break; } case 90: { accountStateRoot_ = 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.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_raw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_raw_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.BlockHeader.raw.class, org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int TXTRIEROOT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString txTrieRoot_; /** * bytes txTrieRoot = 2; * @return The txTrieRoot. */ @java.lang.Override public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; } public static final int PARENTHASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString parentHash_; /** * bytes parentHash = 3; * @return The parentHash. */ @java.lang.Override public com.google.protobuf.ByteString getParentHash() { return parentHash_; } public static final int NUMBER_FIELD_NUMBER = 7; private long number_; /** *
       * bytes nonce = 5;
       * bytes difficulty = 6;
       * 
* * int64 number = 7; * @return The number. */ @java.lang.Override public long getNumber() { return number_; } public static final int WITNESS_ID_FIELD_NUMBER = 8; private long witnessId_; /** * int64 witness_id = 8; * @return The witnessId. */ @java.lang.Override public long getWitnessId() { return witnessId_; } public static final int WITNESS_ADDRESS_FIELD_NUMBER = 9; private com.google.protobuf.ByteString witnessAddress_; /** * bytes witness_address = 9; * @return The witnessAddress. */ @java.lang.Override public com.google.protobuf.ByteString getWitnessAddress() { return witnessAddress_; } public static final int VERSION_FIELD_NUMBER = 10; private int version_; /** * int32 version = 10; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } public static final int ACCOUNTSTATEROOT_FIELD_NUMBER = 11; private com.google.protobuf.ByteString accountStateRoot_; /** * bytes accountStateRoot = 11; * @return The accountStateRoot. */ @java.lang.Override public com.google.protobuf.ByteString getAccountStateRoot() { return accountStateRoot_; } 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 (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (!txTrieRoot_.isEmpty()) { output.writeBytes(2, txTrieRoot_); } if (!parentHash_.isEmpty()) { output.writeBytes(3, parentHash_); } if (number_ != 0L) { output.writeInt64(7, number_); } if (witnessId_ != 0L) { output.writeInt64(8, witnessId_); } if (!witnessAddress_.isEmpty()) { output.writeBytes(9, witnessAddress_); } if (version_ != 0) { output.writeInt32(10, version_); } if (!accountStateRoot_.isEmpty()) { output.writeBytes(11, accountStateRoot_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (!txTrieRoot_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, txTrieRoot_); } if (!parentHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, parentHash_); } if (number_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, number_); } if (witnessId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, witnessId_); } if (!witnessAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, witnessAddress_); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, version_); } if (!accountStateRoot_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, accountStateRoot_); } 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.vision.visionjsdk.proto.Chain.BlockHeader.raw)) { return super.equals(obj); } org.vision.visionjsdk.proto.Chain.BlockHeader.raw other = (org.vision.visionjsdk.proto.Chain.BlockHeader.raw) obj; if (getTimestamp() != other.getTimestamp()) return false; if (!getTxTrieRoot() .equals(other.getTxTrieRoot())) return false; if (!getParentHash() .equals(other.getParentHash())) return false; if (getNumber() != other.getNumber()) return false; if (getWitnessId() != other.getWitnessId()) return false; if (!getWitnessAddress() .equals(other.getWitnessAddress())) return false; if (getVersion() != other.getVersion()) return false; if (!getAccountStateRoot() .equals(other.getAccountStateRoot())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; hash = (53 * hash) + getTxTrieRoot().hashCode(); hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; hash = (53 * hash) + getParentHash().hashCode(); hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumber()); hash = (37 * hash) + WITNESS_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWitnessId()); hash = (37 * hash) + WITNESS_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getWitnessAddress().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + ACCOUNTSTATEROOT_FIELD_NUMBER; hash = (53 * hash) + getAccountStateRoot().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw 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.vision.visionjsdk.proto.Chain.BlockHeader.raw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw 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.vision.visionjsdk.proto.Chain.BlockHeader.raw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw 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.vision.visionjsdk.proto.Chain.BlockHeader.raw 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 protocol.BlockHeader.raw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.BlockHeader.raw) org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_raw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_raw_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.BlockHeader.raw.class, org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder.class); } // Construct using org.vision.visionjsdk.proto.Chain.BlockHeader.raw.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(); timestamp_ = 0L; txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; parentHash_ = com.google.protobuf.ByteString.EMPTY; number_ = 0L; witnessId_ = 0L; witnessAddress_ = com.google.protobuf.ByteString.EMPTY; version_ = 0; accountStateRoot_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_raw_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader.raw getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Chain.BlockHeader.raw.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader.raw build() { org.vision.visionjsdk.proto.Chain.BlockHeader.raw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader.raw buildPartial() { org.vision.visionjsdk.proto.Chain.BlockHeader.raw result = new org.vision.visionjsdk.proto.Chain.BlockHeader.raw(this); result.timestamp_ = timestamp_; result.txTrieRoot_ = txTrieRoot_; result.parentHash_ = parentHash_; result.number_ = number_; result.witnessId_ = witnessId_; result.witnessAddress_ = witnessAddress_; result.version_ = version_; result.accountStateRoot_ = accountStateRoot_; 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.vision.visionjsdk.proto.Chain.BlockHeader.raw) { return mergeFrom((org.vision.visionjsdk.proto.Chain.BlockHeader.raw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Chain.BlockHeader.raw other) { if (other == org.vision.visionjsdk.proto.Chain.BlockHeader.raw.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { setTxTrieRoot(other.getTxTrieRoot()); } if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { setParentHash(other.getParentHash()); } if (other.getNumber() != 0L) { setNumber(other.getNumber()); } if (other.getWitnessId() != 0L) { setWitnessId(other.getWitnessId()); } if (other.getWitnessAddress() != com.google.protobuf.ByteString.EMPTY) { setWitnessAddress(other.getWitnessAddress()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.getAccountStateRoot() != com.google.protobuf.ByteString.EMPTY) { setAccountStateRoot(other.getAccountStateRoot()); } 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.vision.visionjsdk.proto.Chain.BlockHeader.raw parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Chain.BlockHeader.raw) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long timestamp_ ; /** * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 1; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** * int64 timestamp = 1; * @return This builder for chaining. */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** * bytes txTrieRoot = 2; * @return The txTrieRoot. */ @java.lang.Override public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; } /** * bytes txTrieRoot = 2; * @param value The txTrieRoot to set. * @return This builder for chaining. */ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } txTrieRoot_ = value; onChanged(); return this; } /** * bytes txTrieRoot = 2; * @return This builder for chaining. */ public Builder clearTxTrieRoot() { txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); onChanged(); return this; } private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes parentHash = 3; * @return The parentHash. */ @java.lang.Override public com.google.protobuf.ByteString getParentHash() { return parentHash_; } /** * bytes parentHash = 3; * @param value The parentHash to set. * @return This builder for chaining. */ public Builder setParentHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentHash_ = value; onChanged(); return this; } /** * bytes parentHash = 3; * @return This builder for chaining. */ public Builder clearParentHash() { parentHash_ = getDefaultInstance().getParentHash(); onChanged(); return this; } private long number_ ; /** *
         * bytes nonce = 5;
         * bytes difficulty = 6;
         * 
* * int64 number = 7; * @return The number. */ @java.lang.Override public long getNumber() { return number_; } /** *
         * bytes nonce = 5;
         * bytes difficulty = 6;
         * 
* * int64 number = 7; * @param value The number to set. * @return This builder for chaining. */ public Builder setNumber(long value) { number_ = value; onChanged(); return this; } /** *
         * bytes nonce = 5;
         * bytes difficulty = 6;
         * 
* * int64 number = 7; * @return This builder for chaining. */ public Builder clearNumber() { number_ = 0L; onChanged(); return this; } private long witnessId_ ; /** * int64 witness_id = 8; * @return The witnessId. */ @java.lang.Override public long getWitnessId() { return witnessId_; } /** * int64 witness_id = 8; * @param value The witnessId to set. * @return This builder for chaining. */ public Builder setWitnessId(long value) { witnessId_ = value; onChanged(); return this; } /** * int64 witness_id = 8; * @return This builder for chaining. */ public Builder clearWitnessId() { witnessId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString witnessAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes witness_address = 9; * @return The witnessAddress. */ @java.lang.Override public com.google.protobuf.ByteString getWitnessAddress() { return witnessAddress_; } /** * bytes witness_address = 9; * @param value The witnessAddress to set. * @return This builder for chaining. */ public Builder setWitnessAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } witnessAddress_ = value; onChanged(); return this; } /** * bytes witness_address = 9; * @return This builder for chaining. */ public Builder clearWitnessAddress() { witnessAddress_ = getDefaultInstance().getWitnessAddress(); onChanged(); return this; } private int version_ ; /** * int32 version = 10; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** * int32 version = 10; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /** * int32 version = 10; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString accountStateRoot_ = com.google.protobuf.ByteString.EMPTY; /** * bytes accountStateRoot = 11; * @return The accountStateRoot. */ @java.lang.Override public com.google.protobuf.ByteString getAccountStateRoot() { return accountStateRoot_; } /** * bytes accountStateRoot = 11; * @param value The accountStateRoot to set. * @return This builder for chaining. */ public Builder setAccountStateRoot(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } accountStateRoot_ = value; onChanged(); return this; } /** * bytes accountStateRoot = 11; * @return This builder for chaining. */ public Builder clearAccountStateRoot() { accountStateRoot_ = getDefaultInstance().getAccountStateRoot(); 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:protocol.BlockHeader.raw) } // @@protoc_insertion_point(class_scope:protocol.BlockHeader.raw) private static final org.vision.visionjsdk.proto.Chain.BlockHeader.raw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Chain.BlockHeader.raw(); } public static org.vision.visionjsdk.proto.Chain.BlockHeader.raw getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public raw parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new raw(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.vision.visionjsdk.proto.Chain.BlockHeader.raw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RAW_DATA_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Chain.BlockHeader.raw rawData_; /** * .protocol.BlockHeader.raw raw_data = 1; * @return Whether the rawData field is set. */ @java.lang.Override public boolean hasRawData() { return rawData_ != null; } /** * .protocol.BlockHeader.raw raw_data = 1; * @return The rawData. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader.raw getRawData() { return rawData_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.raw.getDefaultInstance() : rawData_; } /** * .protocol.BlockHeader.raw raw_data = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder getRawDataOrBuilder() { return getRawData(); } public static final int WITNESS_SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString witnessSignature_; /** * bytes witness_signature = 2; * @return The witnessSignature. */ @java.lang.Override public com.google.protobuf.ByteString getWitnessSignature() { return witnessSignature_; } 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 (rawData_ != null) { output.writeMessage(1, getRawData()); } if (!witnessSignature_.isEmpty()) { output.writeBytes(2, witnessSignature_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (rawData_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRawData()); } if (!witnessSignature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, witnessSignature_); } 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.vision.visionjsdk.proto.Chain.BlockHeader)) { return super.equals(obj); } org.vision.visionjsdk.proto.Chain.BlockHeader other = (org.vision.visionjsdk.proto.Chain.BlockHeader) obj; if (hasRawData() != other.hasRawData()) return false; if (hasRawData()) { if (!getRawData() .equals(other.getRawData())) return false; } if (!getWitnessSignature() .equals(other.getWitnessSignature())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRawData()) { hash = (37 * hash) + RAW_DATA_FIELD_NUMBER; hash = (53 * hash) + getRawData().hashCode(); } hash = (37 * hash) + WITNESS_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getWitnessSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Chain.BlockHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.BlockHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.BlockHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.BlockHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.BlockHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.BlockHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.BlockHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.BlockHeader 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.vision.visionjsdk.proto.Chain.BlockHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.BlockHeader 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.vision.visionjsdk.proto.Chain.BlockHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.BlockHeader 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.vision.visionjsdk.proto.Chain.BlockHeader 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 protocol.BlockHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.BlockHeader) org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.BlockHeader.class, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder.class); } // Construct using org.vision.visionjsdk.proto.Chain.BlockHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (rawDataBuilder_ == null) { rawData_ = null; } else { rawData_ = null; rawDataBuilder_ = null; } witnessSignature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_BlockHeader_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader build() { org.vision.visionjsdk.proto.Chain.BlockHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader buildPartial() { org.vision.visionjsdk.proto.Chain.BlockHeader result = new org.vision.visionjsdk.proto.Chain.BlockHeader(this); if (rawDataBuilder_ == null) { result.rawData_ = rawData_; } else { result.rawData_ = rawDataBuilder_.build(); } result.witnessSignature_ = witnessSignature_; 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.vision.visionjsdk.proto.Chain.BlockHeader) { return mergeFrom((org.vision.visionjsdk.proto.Chain.BlockHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Chain.BlockHeader other) { if (other == org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance()) return this; if (other.hasRawData()) { mergeRawData(other.getRawData()); } if (other.getWitnessSignature() != com.google.protobuf.ByteString.EMPTY) { setWitnessSignature(other.getWitnessSignature()); } 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.vision.visionjsdk.proto.Chain.BlockHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Chain.BlockHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.vision.visionjsdk.proto.Chain.BlockHeader.raw rawData_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.BlockHeader.raw, org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder, org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder> rawDataBuilder_; /** * .protocol.BlockHeader.raw raw_data = 1; * @return Whether the rawData field is set. */ public boolean hasRawData() { return rawDataBuilder_ != null || rawData_ != null; } /** * .protocol.BlockHeader.raw raw_data = 1; * @return The rawData. */ public org.vision.visionjsdk.proto.Chain.BlockHeader.raw getRawData() { if (rawDataBuilder_ == null) { return rawData_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.raw.getDefaultInstance() : rawData_; } else { return rawDataBuilder_.getMessage(); } } /** * .protocol.BlockHeader.raw raw_data = 1; * @param value value * @return Builder */ public Builder setRawData(org.vision.visionjsdk.proto.Chain.BlockHeader.raw value) { if (rawDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rawData_ = value; onChanged(); } else { rawDataBuilder_.setMessage(value); } return this; } /** * .protocol.BlockHeader.raw raw_data = 1; * @param builderForValue builderForValue * @return Builder */ public Builder setRawData( org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder builderForValue) { if (rawDataBuilder_ == null) { rawData_ = builderForValue.build(); onChanged(); } else { rawDataBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.BlockHeader.raw raw_data = 1; * @param value value * @return Builder */ public Builder mergeRawData(org.vision.visionjsdk.proto.Chain.BlockHeader.raw value) { if (rawDataBuilder_ == null) { if (rawData_ != null) { rawData_ = org.vision.visionjsdk.proto.Chain.BlockHeader.raw.newBuilder(rawData_).mergeFrom(value).buildPartial(); } else { rawData_ = value; } onChanged(); } else { rawDataBuilder_.mergeFrom(value); } return this; } /** * .protocol.BlockHeader.raw raw_data = 1; * @return Builder */ public Builder clearRawData() { if (rawDataBuilder_ == null) { rawData_ = null; onChanged(); } else { rawData_ = null; rawDataBuilder_ = null; } return this; } /** * .protocol.BlockHeader.raw raw_data = 1; * @return org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder */ public org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder getRawDataBuilder() { onChanged(); return getRawDataFieldBuilder().getBuilder(); } /** * .protocol.BlockHeader.raw raw_data = 1; * @return org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder */ public org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder getRawDataOrBuilder() { if (rawDataBuilder_ != null) { return rawDataBuilder_.getMessageOrBuilder(); } else { return rawData_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.raw.getDefaultInstance() : rawData_; } } /** * .protocol.BlockHeader.raw raw_data = 1; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.BlockHeader.raw, org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder, org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder> getRawDataFieldBuilder() { if (rawDataBuilder_ == null) { rawDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.BlockHeader.raw, org.vision.visionjsdk.proto.Chain.BlockHeader.raw.Builder, org.vision.visionjsdk.proto.Chain.BlockHeader.rawOrBuilder>( getRawData(), getParentForChildren(), isClean()); rawData_ = null; } return rawDataBuilder_; } private com.google.protobuf.ByteString witnessSignature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes witness_signature = 2; * @return The witnessSignature. */ @java.lang.Override public com.google.protobuf.ByteString getWitnessSignature() { return witnessSignature_; } /** * bytes witness_signature = 2; * @param value The witnessSignature to set. * @return This builder for chaining. */ public Builder setWitnessSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } witnessSignature_ = value; onChanged(); return this; } /** * bytes witness_signature = 2; * @return This builder for chaining. */ public Builder clearWitnessSignature() { witnessSignature_ = getDefaultInstance().getWitnessSignature(); 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:protocol.BlockHeader) } // @@protoc_insertion_point(class_scope:protocol.BlockHeader) private static final org.vision.visionjsdk.proto.Chain.BlockHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Chain.BlockHeader(); } public static org.vision.visionjsdk.proto.Chain.BlockHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockHeader(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.vision.visionjsdk.proto.Chain.BlockHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Block) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.Transaction transactions = 1; * @return org.vision.visionjsdk.proto.Chain.Transaction */ java.util.List getTransactionsList(); /** * repeated .protocol.Transaction transactions = 1; * @param index index * @return org.vision.visionjsdk.proto.Chain.Transaction */ org.vision.visionjsdk.proto.Chain.Transaction getTransactions(int index); /** * repeated .protocol.Transaction transactions = 1; * @return int */ int getTransactionsCount(); /** * repeated .protocol.Transaction transactions = 1; * @return org.vision.visionjsdk.proto.Chain.TransactionOrBuilder */ java.util.List getTransactionsOrBuilderList(); /** * repeated .protocol.Transaction transactions = 1; * @param index index * @return org.vision.visionjsdk.proto.Chain.TransactionOrBuilder */ org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionsOrBuilder( int index); /** * .protocol.BlockHeader block_header = 2; * @return Whether the blockHeader field is set. */ boolean hasBlockHeader(); /** * .protocol.BlockHeader block_header = 2; * @return The blockHeader. */ org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader(); /** * .protocol.BlockHeader block_header = 2; * @return org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder */ org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder(); } /** *
   * block
   * 
* * Protobuf type {@code protocol.Block} */ public static final class Block extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Block) BlockOrBuilder { private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Block() { transactions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Block( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { transactions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } transactions_.add( input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.parser(), extensionRegistry)); break; } case 18: { org.vision.visionjsdk.proto.Chain.BlockHeader.Builder subBuilder = null; if (blockHeader_ != null) { subBuilder = blockHeader_.toBuilder(); } blockHeader_ = input.readMessage(org.vision.visionjsdk.proto.Chain.BlockHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(blockHeader_); blockHeader_ = subBuilder.buildPartial(); } 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)) { transactions_ = java.util.Collections.unmodifiableList(transactions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Block.class, org.vision.visionjsdk.proto.Chain.Block.Builder.class); } public static final int TRANSACTIONS_FIELD_NUMBER = 1; private java.util.List transactions_; /** * repeated .protocol.Transaction transactions = 1; */ @java.lang.Override public java.util.List getTransactionsList() { return transactions_; } /** * repeated .protocol.Transaction transactions = 1; */ @java.lang.Override public java.util.List getTransactionsOrBuilderList() { return transactions_; } /** * repeated .protocol.Transaction transactions = 1; */ @java.lang.Override public int getTransactionsCount() { return transactions_.size(); } /** * repeated .protocol.Transaction transactions = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction getTransactions(int index) { return transactions_.get(index); } /** * repeated .protocol.Transaction transactions = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionsOrBuilder( int index) { return transactions_.get(index); } public static final int BLOCK_HEADER_FIELD_NUMBER = 2; private org.vision.visionjsdk.proto.Chain.BlockHeader blockHeader_; /** * .protocol.BlockHeader block_header = 2; * @return Whether the blockHeader field is set. */ @java.lang.Override public boolean hasBlockHeader() { return blockHeader_ != null; } /** * .protocol.BlockHeader block_header = 2; * @return The blockHeader. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader() { return blockHeader_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_; } /** * .protocol.BlockHeader block_header = 2; */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() { return getBlockHeader(); } 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 { for (int i = 0; i < transactions_.size(); i++) { output.writeMessage(1, transactions_.get(i)); } if (blockHeader_ != null) { output.writeMessage(2, getBlockHeader()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < transactions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, transactions_.get(i)); } if (blockHeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBlockHeader()); } 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.vision.visionjsdk.proto.Chain.Block)) { return super.equals(obj); } org.vision.visionjsdk.proto.Chain.Block other = (org.vision.visionjsdk.proto.Chain.Block) obj; if (!getTransactionsList() .equals(other.getTransactionsList())) return false; if (hasBlockHeader() != other.hasBlockHeader()) return false; if (hasBlockHeader()) { if (!getBlockHeader() .equals(other.getBlockHeader())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getTransactionsCount() > 0) { hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransactionsList().hashCode(); } if (hasBlockHeader()) { hash = (37 * hash) + BLOCK_HEADER_FIELD_NUMBER; hash = (53 * hash) + getBlockHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Chain.Block parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Block parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Chain.Block parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Chain.Block parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Block 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.vision.visionjsdk.proto.Chain.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Block 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.vision.visionjsdk.proto.Chain.Block parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Chain.Block 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.vision.visionjsdk.proto.Chain.Block 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; } /** *
     * block
     * 
* * Protobuf type {@code protocol.Block} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Block) org.vision.visionjsdk.proto.Chain.BlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Chain.Block.class, org.vision.visionjsdk.proto.Chain.Block.Builder.class); } // Construct using org.vision.visionjsdk.proto.Chain.Block.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTransactionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { transactionsBuilder_.clear(); } if (blockHeaderBuilder_ == null) { blockHeader_ = null; } else { blockHeader_ = null; blockHeaderBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Chain.internal_static_protocol_Block_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Block getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Chain.Block.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Block build() { org.vision.visionjsdk.proto.Chain.Block result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Block buildPartial() { org.vision.visionjsdk.proto.Chain.Block result = new org.vision.visionjsdk.proto.Chain.Block(this); int from_bitField0_ = bitField0_; if (transactionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transactions_ = java.util.Collections.unmodifiableList(transactions_); bitField0_ = (bitField0_ & ~0x00000001); } result.transactions_ = transactions_; } else { result.transactions_ = transactionsBuilder_.build(); } if (blockHeaderBuilder_ == null) { result.blockHeader_ = blockHeader_; } else { result.blockHeader_ = blockHeaderBuilder_.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.vision.visionjsdk.proto.Chain.Block) { return mergeFrom((org.vision.visionjsdk.proto.Chain.Block)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Chain.Block other) { if (other == org.vision.visionjsdk.proto.Chain.Block.getDefaultInstance()) return this; if (transactionsBuilder_ == null) { if (!other.transactions_.isEmpty()) { if (transactions_.isEmpty()) { transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTransactionsIsMutable(); transactions_.addAll(other.transactions_); } onChanged(); } } else { if (!other.transactions_.isEmpty()) { if (transactionsBuilder_.isEmpty()) { transactionsBuilder_.dispose(); transactionsBuilder_ = null; transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000001); transactionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionsFieldBuilder() : null; } else { transactionsBuilder_.addAllMessages(other.transactions_); } } } if (other.hasBlockHeader()) { mergeBlockHeader(other.getBlockHeader()); } 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.vision.visionjsdk.proto.Chain.Block parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Chain.Block) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List transactions_ = java.util.Collections.emptyList(); private void ensureTransactionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { transactions_ = new java.util.ArrayList(transactions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionsBuilder_; /** * repeated .protocol.Transaction transactions = 1; */ public java.util.List getTransactionsList() { if (transactionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transactions_); } else { return transactionsBuilder_.getMessageList(); } } /** * repeated .protocol.Transaction transactions = 1; */ public int getTransactionsCount() { if (transactionsBuilder_ == null) { return transactions_.size(); } else { return transactionsBuilder_.getCount(); } } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @return org.vision.visionjsdk.proto.Chain.Transaction */ public org.vision.visionjsdk.proto.Chain.Transaction getTransactions(int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessage(index); } } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @param value value * @return Builder */ public Builder setTransactions( int index, org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.set(index, value); onChanged(); } else { transactionsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setTransactions( int index, org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.set(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param value value * @return Builder */ public Builder addTransactions(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(value); onChanged(); } else { transactionsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @param value value * @return Builder */ public Builder addTransactions( int index, org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(index, value); onChanged(); } else { transactionsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param builderForValue builderForValue * @return Builder */ public Builder addTransactions( org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addTransactions( int index, org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param values values * @return Builder */ public Builder addAllTransactions( java.lang.Iterable values) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactions_); onChanged(); } else { transactionsBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @return Builder */ public Builder clearTransactions() { if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transactionsBuilder_.clear(); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @return Builder */ public Builder removeTransactions(int index) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.remove(index); onChanged(); } else { transactionsBuilder_.remove(index); } return this; } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionsBuilder( int index) { return getTransactionsFieldBuilder().getBuilder(index); } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @return TransactionOrBuilder */ public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionsOrBuilder( int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Transaction transactions = 1; * @return extends org.vision.visionjsdk.proto.Chain.TransactionOrBuilder */ public java.util.List getTransactionsOrBuilderList() { if (transactionsBuilder_ != null) { return transactionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactions_); } } /** * repeated .protocol.Transaction transactions = 1; * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Builder addTransactionsBuilder() { return getTransactionsFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance()); } /** * repeated .protocol.Transaction transactions = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Builder addTransactionsBuilder( int index) { return getTransactionsFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance()); } /** * repeated .protocol.Transaction transactions = 1; * @return org.vision.visionjsdk.proto.Chain.Transaction.Builder */ public java.util.List getTransactionsBuilderList() { return getTransactionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> getTransactionsFieldBuilder() { if (transactionsBuilder_ == null) { transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>( transactions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transactions_ = null; } return transactionsBuilder_; } private org.vision.visionjsdk.proto.Chain.BlockHeader blockHeader_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder> blockHeaderBuilder_; /** * .protocol.BlockHeader block_header = 2; * @return Whether the blockHeader field is set. */ public boolean hasBlockHeader() { return blockHeaderBuilder_ != null || blockHeader_ != null; } /** * .protocol.BlockHeader block_header = 2; * @return The blockHeader. */ public org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader() { if (blockHeaderBuilder_ == null) { return blockHeader_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_; } else { return blockHeaderBuilder_.getMessage(); } } /** * .protocol.BlockHeader block_header = 2; * @param value value * @return Builder */ public Builder setBlockHeader(org.vision.visionjsdk.proto.Chain.BlockHeader value) { if (blockHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockHeader_ = value; onChanged(); } else { blockHeaderBuilder_.setMessage(value); } return this; } /** * .protocol.BlockHeader block_header = 2; * @param builderForValue builderForValue * @return Builder */ public Builder setBlockHeader( org.vision.visionjsdk.proto.Chain.BlockHeader.Builder builderForValue) { if (blockHeaderBuilder_ == null) { blockHeader_ = builderForValue.build(); onChanged(); } else { blockHeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.BlockHeader block_header = 2; * @param value value * @return Builder */ public Builder mergeBlockHeader(org.vision.visionjsdk.proto.Chain.BlockHeader value) { if (blockHeaderBuilder_ == null) { if (blockHeader_ != null) { blockHeader_ = org.vision.visionjsdk.proto.Chain.BlockHeader.newBuilder(blockHeader_).mergeFrom(value).buildPartial(); } else { blockHeader_ = value; } onChanged(); } else { blockHeaderBuilder_.mergeFrom(value); } return this; } /** * .protocol.BlockHeader block_header = 2; * @return Builder */ public Builder clearBlockHeader() { if (blockHeaderBuilder_ == null) { blockHeader_ = null; onChanged(); } else { blockHeader_ = null; blockHeaderBuilder_ = null; } return this; } /** * .protocol.BlockHeader block_header = 2; * @return Builder */ public org.vision.visionjsdk.proto.Chain.BlockHeader.Builder getBlockHeaderBuilder() { onChanged(); return getBlockHeaderFieldBuilder().getBuilder(); } /** * .protocol.BlockHeader block_header = 2; * @return BlockHeaderOrBuilder */ public org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() { if (blockHeaderBuilder_ != null) { return blockHeaderBuilder_.getMessageOrBuilder(); } else { return blockHeader_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_; } } /** * .protocol.BlockHeader block_header = 2; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder> getBlockHeaderFieldBuilder() { if (blockHeaderBuilder_ == null) { blockHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder>( getBlockHeader(), getParentForChildren(), isClean()); blockHeader_ = null; } return blockHeaderBuilder_; } @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:protocol.Block) } // @@protoc_insertion_point(class_scope:protocol.Block) private static final org.vision.visionjsdk.proto.Chain.Block DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Chain.Block(); } public static org.vision.visionjsdk.proto.Chain.Block getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Block parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Block(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.vision.visionjsdk.proto.Chain.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Transaction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Transaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Transaction_Contract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Transaction_Contract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Transaction_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Transaction_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Transaction_raw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Transaction_raw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockHeader_raw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockHeader_raw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Block_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Block_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\020core/chain.proto\022\010protocol\032\031google/pro" + "tobuf/any.proto\032\021core/common.proto\"\304\021\n\013T" + "ransaction\022+\n\010raw_data\030\001 \001(\0132\031.protocol." + "Transaction.raw\022\021\n\tsignature\030\002 \003(\014\022)\n\003re" + "t\030\005 \003(\0132\034.protocol.Transaction.Result\032\371\010" + "\n\010Contract\0229\n\004type\030\001 \001(\0162+.protocol.Tran" + "saction.Contract.ContractType\022\'\n\tparamet" + "er\030\002 \001(\0132\024.google.protobuf.Any\022\020\n\010provid" + "er\030\003 \001(\014\022\024\n\014ContractName\030\004 \001(\014\022\025\n\rPermis" + "sion_id\030\005 \001(\005\"\311\007\n\014ContractType\022\031\n\025Accoun" + "tCreateContract\020\000\022\024\n\020TransferContract\020\001\022" + "\031\n\025TransferAssetContract\020\002\022\025\n\021VoteAssetC" + "ontract\020\003\022\027\n\023VoteWitnessContract\020\004\022\031\n\025Wi" + "tnessCreateContract\020\005\022\026\n\022AssetIssueContr" + "act\020\006\022\031\n\025WitnessUpdateContract\020\010\022!\n\035Part" + "icipateAssetIssueContract\020\t\022\031\n\025AccountUp" + "dateContract\020\n\022\031\n\025FreezeBalanceContract\020" + "\013\022\033\n\027UnfreezeBalanceContract\020\014\022\033\n\027Withdr" + "awBalanceContract\020\r\022\031\n\025UnfreezeAssetCont" + "ract\020\016\022\027\n\023UpdateAssetContract\020\017\022\032\n\026Propo" + "salCreateContract\020\020\022\033\n\027ProposalApproveCo" + "ntract\020\021\022\032\n\026ProposalDeleteContract\020\022\022\030\n\024" + "SetAccountIdContract\020\023\022\022\n\016CustomContract" + "\020\024\022\027\n\023CreateSmartContract\020\036\022\030\n\024TriggerSm" + "artContract\020\037\022\017\n\013GetContract\020 \022\031\n\025Update" + "SettingContract\020!\022\032\n\026ExchangeCreateContr" + "act\020)\022\032\n\026ExchangeInjectContract\020*\022\034\n\030Exc" + "hangeWithdrawContract\020+\022\037\n\033ExchangeTrans" + "actionContract\020,\022\035\n\031UpdateEntropyLimitCon" + "tract\020-\022#\n\037AccountPermissionUpdateContra" + "ct\020.\022\024\n\020ClearABIContract\0200\022\033\n\027UpdateBrok" + "erageContract\0201\022\034\n\030ShieldedTransferContr" + "act\0203\022\033\n\027MarketSellAssetContract\0204\022\035\n\031Ma" + "rketCancelOrderContract\0205\032\316\005\n\006Result\022\013\n\003" + "fee\030\001 \001(\003\022.\n\003ret\030\002 \001(\0162!.protocol.Transa" + "ction.Result.code\022@\n\013contractRet\030\003 \001(\0162+" + ".protocol.Transaction.Result.contractRes" + "ult\022\024\n\014assetIssueID\030\016 \001(\t\022\027\n\017withdraw_am" + "ount\030\017 \001(\003\022\027\n\017unfreeze_amount\030\020 \001(\003\022 \n\030e" + "xchange_received_amount\030\022 \001(\003\022&\n\036exchang" + "e_inject_another_amount\030\023 \001(\003\022(\n exchang" + "e_withdraw_another_amount\030\024 \001(\003\022\023\n\013excha" + "nge_id\030\025 \001(\003\022 \n\030shielded_transaction_fee" + "\030\026 \001(\003\"\036\n\004code\022\n\n\006SUCESS\020\000\022\n\n\006FAILED\020\001\"\261" + "\002\n\016contractResult\022\013\n\007DEFAULT\020\000\022\013\n\007SUCCES" + "S\020\001\022\n\n\006REVERT\020\002\022\030\n\024BAD_JUMP_DESTINATION\020" + "\003\022\021\n\rOUT_OF_MEMORY\020\004\022\030\n\024PRECOMPILED_CONT" + "RACT\020\005\022\023\n\017STACK_TOO_SMALL\020\006\022\023\n\017STACK_TOO" + "_LARGE\020\007\022\025\n\021ILLEGAL_OPERATION\020\010\022\022\n\016STACK" + "_OVERFLOW\020\t\022\021\n\rOUT_OF_ENTROPY\020\n\022\017\n\013OUT_OF" + "_TIME\020\013\022\027\n\023JVM_STACK_OVER_FLOW\020\014\022\013\n\007UNKN" + "OWN\020\r\022\023\n\017TRANSFER_FAILED\020\016\032\374\001\n\003raw\022\027\n\017re" + "f_block_bytes\030\001 \001(\014\022\025\n\rref_block_num\030\003 \001" + "(\003\022\026\n\016ref_block_hash\030\004 \001(\014\022\022\n\nexpiration" + "\030\010 \001(\003\022\"\n\005auths\030\t \003(\0132\023.protocol.authori" + "ty\022\014\n\004data\030\n \001(\014\0220\n\010contract\030\013 \003(\0132\036.pro" + "tocol.Transaction.Contract\022\017\n\007scripts\030\014 " + "\001(\014\022\021\n\ttimestamp\030\016 \001(\003\022\021\n\tfee_limit\030\022 \001(" + "\003\"\200\002\n\013BlockHeader\022+\n\010raw_data\030\001 \001(\0132\031.pr" + "otocol.BlockHeader.raw\022\031\n\021witness_signat" + "ure\030\002 \001(\014\032\250\001\n\003raw\022\021\n\ttimestamp\030\001 \001(\003\022\022\n\n" + "txTrieRoot\030\002 \001(\014\022\022\n\nparentHash\030\003 \001(\014\022\016\n\006" + "number\030\007 \001(\003\022\022\n\nwitness_id\030\010 \001(\003\022\027\n\017witn" + "ess_address\030\t \001(\014\022\017\n\007version\030\n \001(\005\022\030\n\020ac" + "countStateRoot\030\013 \001(\014\"a\n\005Block\022+\n\014transac" + "tions\030\001 \003(\0132\025.protocol.Transaction\022+\n\014bl" + "ock_header\030\002 \001(\0132\025.protocol.BlockHeaderB" + "\035\n\033org.vision.visionjsdk.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), org.vision.visionjsdk.proto.Common.getDescriptor(), }); internal_static_protocol_Transaction_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Transaction_descriptor, new java.lang.String[] { "RawData", "Signature", "Ret", }); internal_static_protocol_Transaction_Contract_descriptor = internal_static_protocol_Transaction_descriptor.getNestedTypes().get(0); internal_static_protocol_Transaction_Contract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Transaction_Contract_descriptor, new java.lang.String[] { "Type", "Parameter", "Provider", "ContractName", "PermissionId", }); internal_static_protocol_Transaction_Result_descriptor = internal_static_protocol_Transaction_descriptor.getNestedTypes().get(1); internal_static_protocol_Transaction_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Transaction_Result_descriptor, new java.lang.String[] { "Fee", "Ret", "ContractRet", "AssetIssueID", "WithdrawAmount", "UnfreezeAmount", "ExchangeReceivedAmount", "ExchangeInjectAnotherAmount", "ExchangeWithdrawAnotherAmount", "ExchangeId", "ShieldedTransactionFee", }); internal_static_protocol_Transaction_raw_descriptor = internal_static_protocol_Transaction_descriptor.getNestedTypes().get(2); internal_static_protocol_Transaction_raw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Transaction_raw_descriptor, new java.lang.String[] { "RefBlockBytes", "RefBlockNum", "RefBlockHash", "Expiration", "Auths", "Data", "Contract", "Scripts", "Timestamp", "FeeLimit", }); internal_static_protocol_BlockHeader_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protocol_BlockHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockHeader_descriptor, new java.lang.String[] { "RawData", "WitnessSignature", }); internal_static_protocol_BlockHeader_raw_descriptor = internal_static_protocol_BlockHeader_descriptor.getNestedTypes().get(0); internal_static_protocol_BlockHeader_raw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockHeader_raw_descriptor, new java.lang.String[] { "Timestamp", "TxTrieRoot", "ParentHash", "Number", "WitnessId", "WitnessAddress", "Version", "AccountStateRoot", }); internal_static_protocol_Block_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protocol_Block_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Block_descriptor, new java.lang.String[] { "Transactions", "BlockHeader", }); com.google.protobuf.AnyProto.getDescriptor(); org.vision.visionjsdk.proto.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }