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

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

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

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * ChaincodeProposalPayload is the Proposal's payload message to be used when
 * the Header's type is CHAINCODE.  It contains the arguments for this
 * invocation.
 * 
* * Protobuf type {@code protos.ChaincodeProposalPayload} */ public final class ChaincodeProposalPayload extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.ChaincodeProposalPayload) ChaincodeProposalPayloadOrBuilder { 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= */ "", ChaincodeProposalPayload.class.getName()); } // Use ChaincodeProposalPayload.newBuilder() to construct. private ChaincodeProposalPayload(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ChaincodeProposalPayload() { input_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeProposalPayload_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetTransientMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeProposalPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload.class, org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload.Builder.class); } public static final int INPUT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString input_ = com.google.protobuf.ByteString.EMPTY; /** *
   * Input contains the arguments for this invocation. If this invocation
   * deploys a new chaincode, ESCC/VSCC are part of this field.
   * This is usually a marshaled ChaincodeInvocationSpec
   * 
* * bytes input = 1 [json_name = "input"]; * @return The input. */ @java.lang.Override public com.google.protobuf.ByteString getInput() { return input_; } public static final int TRANSIENTMAP_FIELD_NUMBER = 2; private static final class TransientMapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeProposalPayload_TransientMapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.ByteString> transientMap_; private com.google.protobuf.MapField internalGetTransientMap() { if (transientMap_ == null) { return com.google.protobuf.MapField.emptyMapField( TransientMapDefaultEntryHolder.defaultEntry); } return transientMap_; } public int getTransientMapCount() { return internalGetTransientMap().getMap().size(); } /** *
   * TransientMap contains data (e.g. cryptographic material) that might be used
   * to implement some form of application-level confidentiality. The contents
   * of this field are supposed to always be omitted from the transaction and
   * excluded from the ledger.
   * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public boolean containsTransientMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTransientMap().getMap().containsKey(key); } /** * Use {@link #getTransientMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTransientMap() { return getTransientMapMap(); } /** *
   * TransientMap contains data (e.g. cryptographic material) that might be used
   * to implement some form of application-level confidentiality. The contents
   * of this field are supposed to always be omitted from the transaction and
   * excluded from the ledger.
   * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public java.util.Map getTransientMapMap() { return internalGetTransientMap().getMap(); } /** *
   * TransientMap contains data (e.g. cryptographic material) that might be used
   * to implement some form of application-level confidentiality. The contents
   * of this field are supposed to always be omitted from the transaction and
   * excluded from the ledger.
   * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getTransientMapOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTransientMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * TransientMap contains data (e.g. cryptographic material) that might be used
   * to implement some form of application-level confidentiality. The contents
   * of this field are supposed to always be omitted from the transaction and
   * excluded from the ledger.
   * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public com.google.protobuf.ByteString getTransientMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTransientMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (!input_.isEmpty()) { output.writeBytes(1, input_); } com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetTransientMap(), TransientMapDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!input_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, input_); } for (java.util.Map.Entry entry : internalGetTransientMap().getMap().entrySet()) { com.google.protobuf.MapEntry transientMap__ = TransientMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, transientMap__); } 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.ChaincodeProposalPayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload other = (org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload) obj; if (!getInput() .equals(other.getInput())) return false; if (!internalGetTransientMap().equals( other.internalGetTransientMap())) 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) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); if (!internalGetTransientMap().getMap().isEmpty()) { hash = (37 * hash) + TRANSIENTMAP_FIELD_NUMBER; hash = (53 * hash) + internalGetTransientMap().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload 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.ChaincodeProposalPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload 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.ChaincodeProposalPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload 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.ChaincodeProposalPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload 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.ChaincodeProposalPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload 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.ChaincodeProposalPayload 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.ChaincodeProposalPayload 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.ChaincodeProposalPayload 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; } /** *
   * ChaincodeProposalPayload is the Proposal's payload message to be used when
   * the Header's type is CHAINCODE.  It contains the arguments for this
   * invocation.
   * 
* * Protobuf type {@code protos.ChaincodeProposalPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeProposalPayload) org.hyperledger.fabric.protos.peer.ChaincodeProposalPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeProposalPayload_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetTransientMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: return internalGetMutableTransientMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeProposalPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload.class, org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; input_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableTransientMap().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeProposalPayload_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload build() { org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload buildPartial() { org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload result = new org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.input_ = input_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.transientMap_ = internalGetTransientMap(); result.transientMap_.makeImmutable(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload) { return mergeFrom((org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload.getDefaultInstance()) return this; if (other.getInput() != com.google.protobuf.ByteString.EMPTY) { setInput(other.getInput()); } internalGetMutableTransientMap().mergeFrom( other.internalGetTransientMap()); bitField0_ |= 0x00000002; 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: { input_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry transientMap__ = input.readMessage( TransientMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableTransientMap().getMutableMap().put( transientMap__.getKey(), transientMap__.getValue()); 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 input_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Input contains the arguments for this invocation. If this invocation
     * deploys a new chaincode, ESCC/VSCC are part of this field.
     * This is usually a marshaled ChaincodeInvocationSpec
     * 
* * bytes input = 1 [json_name = "input"]; * @return The input. */ @java.lang.Override public com.google.protobuf.ByteString getInput() { return input_; } /** *
     * Input contains the arguments for this invocation. If this invocation
     * deploys a new chaincode, ESCC/VSCC are part of this field.
     * This is usually a marshaled ChaincodeInvocationSpec
     * 
* * bytes input = 1 [json_name = "input"]; * @param value The input to set. * @return This builder for chaining. */ public Builder setInput(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } input_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Input contains the arguments for this invocation. If this invocation
     * deploys a new chaincode, ESCC/VSCC are part of this field.
     * This is usually a marshaled ChaincodeInvocationSpec
     * 
* * bytes input = 1 [json_name = "input"]; * @return This builder for chaining. */ public Builder clearInput() { bitField0_ = (bitField0_ & ~0x00000001); input_ = getDefaultInstance().getInput(); onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.ByteString> transientMap_; private com.google.protobuf.MapField internalGetTransientMap() { if (transientMap_ == null) { return com.google.protobuf.MapField.emptyMapField( TransientMapDefaultEntryHolder.defaultEntry); } return transientMap_; } private com.google.protobuf.MapField internalGetMutableTransientMap() { if (transientMap_ == null) { transientMap_ = com.google.protobuf.MapField.newMapField( TransientMapDefaultEntryHolder.defaultEntry); } if (!transientMap_.isMutable()) { transientMap_ = transientMap_.copy(); } bitField0_ |= 0x00000002; onChanged(); return transientMap_; } public int getTransientMapCount() { return internalGetTransientMap().getMap().size(); } /** *
     * TransientMap contains data (e.g. cryptographic material) that might be used
     * to implement some form of application-level confidentiality. The contents
     * of this field are supposed to always be omitted from the transaction and
     * excluded from the ledger.
     * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public boolean containsTransientMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTransientMap().getMap().containsKey(key); } /** * Use {@link #getTransientMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTransientMap() { return getTransientMapMap(); } /** *
     * TransientMap contains data (e.g. cryptographic material) that might be used
     * to implement some form of application-level confidentiality. The contents
     * of this field are supposed to always be omitted from the transaction and
     * excluded from the ledger.
     * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public java.util.Map getTransientMapMap() { return internalGetTransientMap().getMap(); } /** *
     * TransientMap contains data (e.g. cryptographic material) that might be used
     * to implement some form of application-level confidentiality. The contents
     * of this field are supposed to always be omitted from the transaction and
     * excluded from the ledger.
     * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getTransientMapOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTransientMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * TransientMap contains data (e.g. cryptographic material) that might be used
     * to implement some form of application-level confidentiality. The contents
     * of this field are supposed to always be omitted from the transaction and
     * excluded from the ledger.
     * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ @java.lang.Override public com.google.protobuf.ByteString getTransientMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTransientMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTransientMap() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableTransientMap().getMutableMap() .clear(); return this; } /** *
     * TransientMap contains data (e.g. cryptographic material) that might be used
     * to implement some form of application-level confidentiality. The contents
     * of this field are supposed to always be omitted from the transaction and
     * excluded from the ledger.
     * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ public Builder removeTransientMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTransientMap().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTransientMap() { bitField0_ |= 0x00000002; return internalGetMutableTransientMap().getMutableMap(); } /** *
     * TransientMap contains data (e.g. cryptographic material) that might be used
     * to implement some form of application-level confidentiality. The contents
     * of this field are supposed to always be omitted from the transaction and
     * excluded from the ledger.
     * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ public Builder putTransientMap( java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTransientMap().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** *
     * TransientMap contains data (e.g. cryptographic material) that might be used
     * to implement some form of application-level confidentiality. The contents
     * of this field are supposed to always be omitted from the transaction and
     * excluded from the ledger.
     * 
* * map<string, bytes> TransientMap = 2 [json_name = "TransientMap"]; */ public Builder putAllTransientMap( java.util.Map values) { internalGetMutableTransientMap().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } // @@protoc_insertion_point(builder_scope:protos.ChaincodeProposalPayload) } // @@protoc_insertion_point(class_scope:protos.ChaincodeProposalPayload) private static final org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload(); } public static org.hyperledger.fabric.protos.peer.ChaincodeProposalPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeProposalPayload 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.ChaincodeProposalPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy