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

org.hyperledger.fabric.protos.peer.ChaincodeActionPayload 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;

/**
 * 
 * ChaincodeActionPayload is the message to be used for the TransactionAction's
 * payload when the Header's type is set to CHAINCODE.  It carries the
 * chaincodeProposalPayload and an endorsed action to apply to the ledger.
 * 
* * Protobuf type {@code protos.ChaincodeActionPayload} */ public final class ChaincodeActionPayload extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.ChaincodeActionPayload) ChaincodeActionPayloadOrBuilder { 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= */ "", ChaincodeActionPayload.class.getName()); } // Use ChaincodeActionPayload.newBuilder() to construct. private ChaincodeActionPayload(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ChaincodeActionPayload() { chaincodeProposalPayload_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_ChaincodeActionPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_ChaincodeActionPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeActionPayload.class, org.hyperledger.fabric.protos.peer.ChaincodeActionPayload.Builder.class); } private int bitField0_; public static final int CHAINCODE_PROPOSAL_PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString chaincodeProposalPayload_ = com.google.protobuf.ByteString.EMPTY; /** *
   * This field contains the bytes of the ChaincodeProposalPayload message from
   * the original invocation (essentially the arguments) after the application
   * of the visibility function. The main visibility modes are "full" (the
   * entire ChaincodeProposalPayload message is included here), "hash" (only
   * the hash of the ChaincodeProposalPayload message is included) or
   * "nothing".  This field will be used to check the consistency of
   * ProposalResponsePayload.proposalHash.  For the CHAINCODE type,
   * ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader ||
   * f(ChaincodeProposalPayload)) where f is the visibility function.
   * 
* * bytes chaincode_proposal_payload = 1 [json_name = "chaincodeProposalPayload"]; * @return The chaincodeProposalPayload. */ @java.lang.Override public com.google.protobuf.ByteString getChaincodeProposalPayload() { return chaincodeProposalPayload_; } public static final int ACTION_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction action_; /** *
   * The list of actions to apply to the ledger
   * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The list of actions to apply to the ledger
   * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; * @return The action. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction getAction() { return action_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.getDefaultInstance() : action_; } /** *
   * The list of actions to apply to the ledger
   * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeEndorsedActionOrBuilder getActionOrBuilder() { return action_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.getDefaultInstance() : action_; } 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 (!chaincodeProposalPayload_.isEmpty()) { output.writeBytes(1, chaincodeProposalPayload_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getAction()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!chaincodeProposalPayload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, chaincodeProposalPayload_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAction()); } 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.ChaincodeActionPayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeActionPayload other = (org.hyperledger.fabric.protos.peer.ChaincodeActionPayload) obj; if (!getChaincodeProposalPayload() .equals(other.getChaincodeProposalPayload())) return false; if (hasAction() != other.hasAction()) return false; if (hasAction()) { if (!getAction() .equals(other.getAction())) 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(); hash = (37 * hash) + CHAINCODE_PROPOSAL_PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getChaincodeProposalPayload().hashCode(); if (hasAction()) { hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.ChaincodeActionPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeActionPayload 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.ChaincodeActionPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeActionPayload 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.ChaincodeActionPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeActionPayload 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.ChaincodeActionPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeActionPayload 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.ChaincodeActionPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeActionPayload 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.ChaincodeActionPayload 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.ChaincodeActionPayload 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.ChaincodeActionPayload 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; } /** *
   * ChaincodeActionPayload is the message to be used for the TransactionAction's
   * payload when the Header's type is set to CHAINCODE.  It carries the
   * chaincodeProposalPayload and an endorsed action to apply to the ledger.
   * 
* * Protobuf type {@code protos.ChaincodeActionPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeActionPayload) org.hyperledger.fabric.protos.peer.ChaincodeActionPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_ChaincodeActionPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_ChaincodeActionPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeActionPayload.class, org.hyperledger.fabric.protos.peer.ChaincodeActionPayload.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.ChaincodeActionPayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getActionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; chaincodeProposalPayload_ = com.google.protobuf.ByteString.EMPTY; action_ = null; if (actionBuilder_ != null) { actionBuilder_.dispose(); actionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.TransactionProto.internal_static_protos_ChaincodeActionPayload_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeActionPayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.ChaincodeActionPayload.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeActionPayload build() { org.hyperledger.fabric.protos.peer.ChaincodeActionPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeActionPayload buildPartial() { org.hyperledger.fabric.protos.peer.ChaincodeActionPayload result = new org.hyperledger.fabric.protos.peer.ChaincodeActionPayload(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.ChaincodeActionPayload result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.chaincodeProposalPayload_ = chaincodeProposalPayload_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.ChaincodeActionPayload) { return mergeFrom((org.hyperledger.fabric.protos.peer.ChaincodeActionPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeActionPayload other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeActionPayload.getDefaultInstance()) return this; if (other.getChaincodeProposalPayload() != com.google.protobuf.ByteString.EMPTY) { setChaincodeProposalPayload(other.getChaincodeProposalPayload()); } if (other.hasAction()) { mergeAction(other.getAction()); } 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: { chaincodeProposalPayload_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getActionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.protobuf.ByteString chaincodeProposalPayload_ = com.google.protobuf.ByteString.EMPTY; /** *
     * This field contains the bytes of the ChaincodeProposalPayload message from
     * the original invocation (essentially the arguments) after the application
     * of the visibility function. The main visibility modes are "full" (the
     * entire ChaincodeProposalPayload message is included here), "hash" (only
     * the hash of the ChaincodeProposalPayload message is included) or
     * "nothing".  This field will be used to check the consistency of
     * ProposalResponsePayload.proposalHash.  For the CHAINCODE type,
     * ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader ||
     * f(ChaincodeProposalPayload)) where f is the visibility function.
     * 
* * bytes chaincode_proposal_payload = 1 [json_name = "chaincodeProposalPayload"]; * @return The chaincodeProposalPayload. */ @java.lang.Override public com.google.protobuf.ByteString getChaincodeProposalPayload() { return chaincodeProposalPayload_; } /** *
     * This field contains the bytes of the ChaincodeProposalPayload message from
     * the original invocation (essentially the arguments) after the application
     * of the visibility function. The main visibility modes are "full" (the
     * entire ChaincodeProposalPayload message is included here), "hash" (only
     * the hash of the ChaincodeProposalPayload message is included) or
     * "nothing".  This field will be used to check the consistency of
     * ProposalResponsePayload.proposalHash.  For the CHAINCODE type,
     * ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader ||
     * f(ChaincodeProposalPayload)) where f is the visibility function.
     * 
* * bytes chaincode_proposal_payload = 1 [json_name = "chaincodeProposalPayload"]; * @param value The chaincodeProposalPayload to set. * @return This builder for chaining. */ public Builder setChaincodeProposalPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } chaincodeProposalPayload_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * This field contains the bytes of the ChaincodeProposalPayload message from
     * the original invocation (essentially the arguments) after the application
     * of the visibility function. The main visibility modes are "full" (the
     * entire ChaincodeProposalPayload message is included here), "hash" (only
     * the hash of the ChaincodeProposalPayload message is included) or
     * "nothing".  This field will be used to check the consistency of
     * ProposalResponsePayload.proposalHash.  For the CHAINCODE type,
     * ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader ||
     * f(ChaincodeProposalPayload)) where f is the visibility function.
     * 
* * bytes chaincode_proposal_payload = 1 [json_name = "chaincodeProposalPayload"]; * @return This builder for chaining. */ public Builder clearChaincodeProposalPayload() { bitField0_ = (bitField0_ & ~0x00000001); chaincodeProposalPayload_ = getDefaultInstance().getChaincodeProposalPayload(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction action_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction, org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEndorsedActionOrBuilder> actionBuilder_; /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; * @return Whether the action field is set. */ public boolean hasAction() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; * @return The action. */ public org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction getAction() { if (actionBuilder_ == null) { return action_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.getDefaultInstance() : action_; } else { return actionBuilder_.getMessage(); } } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ public Builder setAction(org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; } else { actionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ public Builder setAction( org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.Builder builderForValue) { if (actionBuilder_ == null) { action_ = builderForValue.build(); } else { actionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ public Builder mergeAction(org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction value) { if (actionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && action_ != null && action_ != org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.getDefaultInstance()) { getActionBuilder().mergeFrom(value); } else { action_ = value; } } else { actionBuilder_.mergeFrom(value); } if (action_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ public Builder clearAction() { bitField0_ = (bitField0_ & ~0x00000002); action_ = null; if (actionBuilder_ != null) { actionBuilder_.dispose(); actionBuilder_ = null; } onChanged(); return this; } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ public org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.Builder getActionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getActionFieldBuilder().getBuilder(); } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ public org.hyperledger.fabric.protos.peer.ChaincodeEndorsedActionOrBuilder getActionOrBuilder() { if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilder(); } else { return action_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.getDefaultInstance() : action_; } } /** *
     * The list of actions to apply to the ledger
     * 
* * .protos.ChaincodeEndorsedAction action = 2 [json_name = "action"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction, org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEndorsedActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { actionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction, org.hyperledger.fabric.protos.peer.ChaincodeEndorsedAction.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEndorsedActionOrBuilder>( getAction(), getParentForChildren(), isClean()); action_ = null; } return actionBuilder_; } // @@protoc_insertion_point(builder_scope:protos.ChaincodeActionPayload) } // @@protoc_insertion_point(class_scope:protos.ChaincodeActionPayload) private static final org.hyperledger.fabric.protos.peer.ChaincodeActionPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.ChaincodeActionPayload(); } public static org.hyperledger.fabric.protos.peer.ChaincodeActionPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeActionPayload 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.ChaincodeActionPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy