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

org.hyperledger.fabric.protos.peer.Transaction Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: peer/transaction.proto
// Protobuf Java Version: 4.28.2

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * The transaction to be sent to the ordering service. A transaction contains
 * one or more TransactionAction. Each TransactionAction binds a proposal to
 * potentially multiple actions. The transaction is atomic meaning that either
 * all actions in the transaction will be committed or none will.  Note that
 * while a Transaction might include more than one Header, the Header.creator
 * field must be the same in each.
 * A single client is free to issue a number of independent Proposal, each with
 * their header (Header) and request payload (ChaincodeProposalPayload).  Each
 * proposal is independently endorsed generating an action
 * (ProposalResponsePayload) with one signature per Endorser. Any number of
 * independent proposals (and their action) might be included in a transaction
 * to ensure that they are treated atomically.
 * 
* * Protobuf type {@code protos.Transaction} */ public final class Transaction extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.Transaction) TransactionOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", Transaction.class.getName()); } // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Transaction() { actions_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Transaction.class, org.hyperledger.fabric.protos.peer.Transaction.Builder.class); } public static final int ACTIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List actions_; /** *
   * The payload is an array of TransactionAction. An array is necessary to
   * accommodate multiple actions per transaction
   * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** *
   * The payload is an array of TransactionAction. An array is necessary to
   * accommodate multiple actions per transaction
   * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; } /** *
   * The payload is an array of TransactionAction. An array is necessary to
   * accommodate multiple actions per transaction
   * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** *
   * The payload is an array of TransactionAction. An array is necessary to
   * accommodate multiple actions per transaction
   * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.TransactionAction getActions(int index) { return actions_.get(index); } /** *
   * The payload is an array of TransactionAction. An array is necessary to
   * accommodate multiple actions per transaction
   * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.TransactionActionOrBuilder getActionsOrBuilder( int index) { return actions_.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 { for (int i = 0; i < actions_.size(); i++) { output.writeMessage(1, actions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, actions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Transaction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Transaction other = (org.hyperledger.fabric.protos.peer.Transaction) obj; if (!getActionsList() .equals(other.getActionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.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.hyperledger.fabric.protos.peer.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Transaction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Transaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .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.hyperledger.fabric.protos.peer.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * The transaction to be sent to the ordering service. A transaction contains
   * one or more TransactionAction. Each TransactionAction binds a proposal to
   * potentially multiple actions. The transaction is atomic meaning that either
   * all actions in the transaction will be committed or none will.  Note that
   * while a Transaction might include more than one Header, the Header.creator
   * field must be the same in each.
   * A single client is free to issue a number of independent Proposal, each with
   * their header (Header) and request payload (ChaincodeProposalPayload).  Each
   * proposal is independently endorsed generating an action
   * (ProposalResponsePayload) with one signature per Endorser. Any number of
   * independent proposals (and their action) might be included in a transaction
   * to ensure that they are treated atomically.
   * 
* * Protobuf type {@code protos.Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.Transaction) org.hyperledger.fabric.protos.peer.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Transaction.class, org.hyperledger.fabric.protos.peer.Transaction.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Transaction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); } else { actions_ = null; actionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_Transaction_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Transaction getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Transaction.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Transaction build() { org.hyperledger.fabric.protos.peer.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Transaction buildPartial() { org.hyperledger.fabric.protos.peer.Transaction result = new org.hyperledger.fabric.protos.peer.Transaction(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.Transaction result) { if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000001); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.peer.Transaction result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.Transaction) { return mergeFrom((org.hyperledger.fabric.protos.peer.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Transaction other) { if (other == org.hyperledger.fabric.protos.peer.Transaction.getDefaultInstance()) return this; if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); actionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.peer.TransactionAction m = input.readMessage( org.hyperledger.fabric.protos.peer.TransactionAction.parser(), extensionRegistry); if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(m); } else { actionsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.TransactionAction, org.hyperledger.fabric.protos.peer.TransactionAction.Builder, org.hyperledger.fabric.protos.peer.TransactionActionOrBuilder> actionsBuilder_; /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public org.hyperledger.fabric.protos.peer.TransactionAction getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder setActions( int index, org.hyperledger.fabric.protos.peer.TransactionAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder setActions( int index, org.hyperledger.fabric.protos.peer.TransactionAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder addActions(org.hyperledger.fabric.protos.peer.TransactionAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder addActions( int index, org.hyperledger.fabric.protos.peer.TransactionAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder addActions( org.hyperledger.fabric.protos.peer.TransactionAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder addActions( int index, org.hyperledger.fabric.protos.peer.TransactionAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public org.hyperledger.fabric.protos.peer.TransactionAction.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public org.hyperledger.fabric.protos.peer.TransactionActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public java.util.List getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public org.hyperledger.fabric.protos.peer.TransactionAction.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.TransactionAction.getDefaultInstance()); } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public org.hyperledger.fabric.protos.peer.TransactionAction.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.TransactionAction.getDefaultInstance()); } /** *
     * The payload is an array of TransactionAction. An array is necessary to
     * accommodate multiple actions per transaction
     * 
* * repeated .protos.TransactionAction actions = 1 [json_name = "actions"]; */ public java.util.List getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.TransactionAction, org.hyperledger.fabric.protos.peer.TransactionAction.Builder, org.hyperledger.fabric.protos.peer.TransactionActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.TransactionAction, org.hyperledger.fabric.protos.peer.TransactionAction.Builder, org.hyperledger.fabric.protos.peer.TransactionActionOrBuilder>( actions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } // @@protoc_insertion_point(builder_scope:protos.Transaction) } // @@protoc_insertion_point(class_scope:protos.Transaction) private static final org.hyperledger.fabric.protos.peer.Transaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Transaction(); } public static org.hyperledger.fabric.protos.peer.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Transaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy