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

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

Go to download

Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.

There is a newer version: 2.2.26
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: peer/resources.proto

package org.hyperledger.fabric.protos.peer;

public final class Resources {
  private Resources() {}
  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 ChaincodeIdentifierOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protos.ChaincodeIdentifier)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The hash of the chaincode bytes
     * 
* * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** *
     * A user friendly human readable name corresponding to the ID
     * 
* * string version = 2; * @return The version. */ java.lang.String getVersion(); /** *
     * A user friendly human readable name corresponding to the ID
     * 
* * string version = 2; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); } /** *
   * ChaincodeIdentifier identifies a piece of chaincode.  For a peer to accept invocations of
   * this chaincode, the hash of the installed code must match, as must the version string
   * included with the install command.
   * 
* * Protobuf type {@code protos.ChaincodeIdentifier} */ public static final class ChaincodeIdentifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ChaincodeIdentifier) ChaincodeIdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use ChaincodeIdentifier.newBuilder() to construct. private ChaincodeIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeIdentifier() { hash_ = com.google.protobuf.ByteString.EMPTY; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeIdentifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier.class, org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier.Builder.class); } public static final int HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hash_; /** *
     * The hash of the chaincode bytes
     * 
* * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** *
     * A user friendly human readable name corresponding to the ID
     * 
* * string version = 2; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** *
     * A user friendly human readable name corresponding to the ID
     * 
* * string version = 2; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!hash_.isEmpty()) { output.writeBytes(1, hash_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, hash_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } 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.Resources.ChaincodeIdentifier)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier other = (org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier) obj; if (!getHash() .equals(other.getHash())) return false; if (!getVersion() .equals(other.getVersion())) 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) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier 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.Resources.ChaincodeIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier 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.Resources.ChaincodeIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier 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.Resources.ChaincodeIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier 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.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier 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.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier 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.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier 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; } /** *
     * ChaincodeIdentifier identifies a piece of chaincode.  For a peer to accept invocations of
     * this chaincode, the hash of the installed code must match, as must the version string
     * included with the install command.
     * 
* * Protobuf type {@code protos.ChaincodeIdentifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeIdentifier) org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier.class, org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); hash_ = com.google.protobuf.ByteString.EMPTY; version_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeIdentifier_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier build() { org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier buildPartial() { org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier result = new org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier(this); result.hash_ = hash_; result.version_ = version_; 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.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier) { return mergeFrom((org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier other) { if (other == org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } 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: { hash_ = input.readBytes(); break; } // case 10 case 18: { version_ = input.readStringRequireUtf8(); 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 com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The hash of the chaincode bytes
       * 
* * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** *
       * The hash of the chaincode bytes
       * 
* * bytes hash = 1; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** *
       * The hash of the chaincode bytes
       * 
* * bytes hash = 1; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * A user friendly human readable name corresponding to the ID
       * 
* * string version = 2; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A user friendly human readable name corresponding to the ID
       * 
* * string version = 2; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A user friendly human readable name corresponding to the ID
       * 
* * string version = 2; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * A user friendly human readable name corresponding to the ID
       * 
* * string version = 2; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * A user friendly human readable name corresponding to the ID
       * 
* * string version = 2; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; 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:protos.ChaincodeIdentifier) } // @@protoc_insertion_point(class_scope:protos.ChaincodeIdentifier) private static final org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier(); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeIdentifier 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.Resources.ChaincodeIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.ChaincodeValidation) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies which code to run to validate transactions, defaults to 'vscc'
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Specifies which code to run to validate transactions, defaults to 'vscc'
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * When 'vscc' a marshaled VSCCArgs
     * 
* * bytes argument = 2; * @return The argument. */ com.google.protobuf.ByteString getArgument(); } /** *
   * ChaincodeValidation instructs the peer how transactions for this chaincode should be
   * validated.  The only validation mechanism which ships with fabric today is the standard
   * 'vscc' validation mechanism.  This built in validation method utilizes an endorsement policy
   * which checks that a sufficient number of signatures have been included.  The 'arguement'
   * field encodes any parameters required by the validation implementation.
   * 
* * Protobuf type {@code protos.ChaincodeValidation} */ public static final class ChaincodeValidation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ChaincodeValidation) ChaincodeValidationOrBuilder { private static final long serialVersionUID = 0L; // Use ChaincodeValidation.newBuilder() to construct. private ChaincodeValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeValidation() { name_ = ""; argument_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeValidation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation.class, org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Specifies which code to run to validate transactions, defaults to 'vscc'
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Specifies which code to run to validate transactions, defaults to 'vscc'
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGUMENT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString argument_; /** *
     * When 'vscc' a marshaled VSCCArgs
     * 
* * bytes argument = 2; * @return The argument. */ @java.lang.Override public com.google.protobuf.ByteString getArgument() { return argument_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!argument_.isEmpty()) { output.writeBytes(2, argument_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!argument_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, argument_); } 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.Resources.ChaincodeValidation)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation other = (org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation) obj; if (!getName() .equals(other.getName())) return false; if (!getArgument() .equals(other.getArgument())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ARGUMENT_FIELD_NUMBER; hash = (53 * hash) + getArgument().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation 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.Resources.ChaincodeValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation 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.Resources.ChaincodeValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation 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.Resources.ChaincodeValidation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation 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.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation 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.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation 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.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation 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; } /** *
     * ChaincodeValidation instructs the peer how transactions for this chaincode should be
     * validated.  The only validation mechanism which ships with fabric today is the standard
     * 'vscc' validation mechanism.  This built in validation method utilizes an endorsement policy
     * which checks that a sufficient number of signatures have been included.  The 'arguement'
     * field encodes any parameters required by the validation implementation.
     * 
* * Protobuf type {@code protos.ChaincodeValidation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeValidation) org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation.class, org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; argument_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeValidation_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation build() { org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation buildPartial() { org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation result = new org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation(this); result.name_ = name_; result.argument_ = argument_; 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.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation) { return mergeFrom((org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation other) { if (other == org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getArgument() != com.google.protobuf.ByteString.EMPTY) { setArgument(other.getArgument()); } 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: { name_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { argument_ = input.readBytes(); 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 java.lang.Object name_ = ""; /** *
       * Specifies which code to run to validate transactions, defaults to 'vscc'
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies which code to run to validate transactions, defaults to 'vscc'
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies which code to run to validate transactions, defaults to 'vscc'
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Specifies which code to run to validate transactions, defaults to 'vscc'
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Specifies which code to run to validate transactions, defaults to 'vscc'
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.ByteString argument_ = com.google.protobuf.ByteString.EMPTY; /** *
       * When 'vscc' a marshaled VSCCArgs
       * 
* * bytes argument = 2; * @return The argument. */ @java.lang.Override public com.google.protobuf.ByteString getArgument() { return argument_; } /** *
       * When 'vscc' a marshaled VSCCArgs
       * 
* * bytes argument = 2; * @param value The argument to set. * @return This builder for chaining. */ public Builder setArgument(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } argument_ = value; onChanged(); return this; } /** *
       * When 'vscc' a marshaled VSCCArgs
       * 
* * bytes argument = 2; * @return This builder for chaining. */ public Builder clearArgument() { argument_ = getDefaultInstance().getArgument(); 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:protos.ChaincodeValidation) } // @@protoc_insertion_point(class_scope:protos.ChaincodeValidation) private static final org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation(); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeValidation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeValidation 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.Resources.ChaincodeValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VSCCArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.VSCCArgs) com.google.protobuf.MessageOrBuilder { /** *
     * A named reference to an endorsement policy,
     * 
* * string endorsement_policy_ref = 1; * @return The endorsementPolicyRef. */ java.lang.String getEndorsementPolicyRef(); /** *
     * A named reference to an endorsement policy,
     * 
* * string endorsement_policy_ref = 1; * @return The bytes for endorsementPolicyRef. */ com.google.protobuf.ByteString getEndorsementPolicyRefBytes(); } /** *
   * VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the
   * argument field of the ChaincodeValidation message.
   * 
* * Protobuf type {@code protos.VSCCArgs} */ public static final class VSCCArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.VSCCArgs) VSCCArgsOrBuilder { private static final long serialVersionUID = 0L; // Use VSCCArgs.newBuilder() to construct. private VSCCArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VSCCArgs() { endorsementPolicyRef_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VSCCArgs(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_VSCCArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_VSCCArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.VSCCArgs.class, org.hyperledger.fabric.protos.peer.Resources.VSCCArgs.Builder.class); } public static final int ENDORSEMENT_POLICY_REF_FIELD_NUMBER = 1; private volatile java.lang.Object endorsementPolicyRef_; /** *
     * A named reference to an endorsement policy,
     * 
* * string endorsement_policy_ref = 1; * @return The endorsementPolicyRef. */ @java.lang.Override public java.lang.String getEndorsementPolicyRef() { java.lang.Object ref = endorsementPolicyRef_; 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(); endorsementPolicyRef_ = s; return s; } } /** *
     * A named reference to an endorsement policy,
     * 
* * string endorsement_policy_ref = 1; * @return The bytes for endorsementPolicyRef. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPolicyRefBytes() { java.lang.Object ref = endorsementPolicyRef_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPolicyRef_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPolicyRef_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endorsementPolicyRef_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPolicyRef_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endorsementPolicyRef_); } 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.Resources.VSCCArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Resources.VSCCArgs other = (org.hyperledger.fabric.protos.peer.Resources.VSCCArgs) obj; if (!getEndorsementPolicyRef() .equals(other.getEndorsementPolicyRef())) 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) + ENDORSEMENT_POLICY_REF_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPolicyRef().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs 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.Resources.VSCCArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs 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.Resources.VSCCArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs 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.Resources.VSCCArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs 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.hyperledger.fabric.protos.peer.Resources.VSCCArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs 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.hyperledger.fabric.protos.peer.Resources.VSCCArgs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs 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.hyperledger.fabric.protos.peer.Resources.VSCCArgs 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; } /** *
     * VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the
     * argument field of the ChaincodeValidation message.
     * 
* * Protobuf type {@code protos.VSCCArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.VSCCArgs) org.hyperledger.fabric.protos.peer.Resources.VSCCArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_VSCCArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_VSCCArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.VSCCArgs.class, org.hyperledger.fabric.protos.peer.Resources.VSCCArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Resources.VSCCArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); endorsementPolicyRef_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_VSCCArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.VSCCArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Resources.VSCCArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.VSCCArgs build() { org.hyperledger.fabric.protos.peer.Resources.VSCCArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.VSCCArgs buildPartial() { org.hyperledger.fabric.protos.peer.Resources.VSCCArgs result = new org.hyperledger.fabric.protos.peer.Resources.VSCCArgs(this); result.endorsementPolicyRef_ = endorsementPolicyRef_; 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.hyperledger.fabric.protos.peer.Resources.VSCCArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.Resources.VSCCArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Resources.VSCCArgs other) { if (other == org.hyperledger.fabric.protos.peer.Resources.VSCCArgs.getDefaultInstance()) return this; if (!other.getEndorsementPolicyRef().isEmpty()) { endorsementPolicyRef_ = other.endorsementPolicyRef_; onChanged(); } 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: { endorsementPolicyRef_ = input.readStringRequireUtf8(); 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 java.lang.Object endorsementPolicyRef_ = ""; /** *
       * A named reference to an endorsement policy,
       * 
* * string endorsement_policy_ref = 1; * @return The endorsementPolicyRef. */ public java.lang.String getEndorsementPolicyRef() { java.lang.Object ref = endorsementPolicyRef_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPolicyRef_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A named reference to an endorsement policy,
       * 
* * string endorsement_policy_ref = 1; * @return The bytes for endorsementPolicyRef. */ public com.google.protobuf.ByteString getEndorsementPolicyRefBytes() { java.lang.Object ref = endorsementPolicyRef_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPolicyRef_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A named reference to an endorsement policy,
       * 
* * string endorsement_policy_ref = 1; * @param value The endorsementPolicyRef to set. * @return This builder for chaining. */ public Builder setEndorsementPolicyRef( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPolicyRef_ = value; onChanged(); return this; } /** *
       * A named reference to an endorsement policy,
       * 
* * string endorsement_policy_ref = 1; * @return This builder for chaining. */ public Builder clearEndorsementPolicyRef() { endorsementPolicyRef_ = getDefaultInstance().getEndorsementPolicyRef(); onChanged(); return this; } /** *
       * A named reference to an endorsement policy,
       * 
* * string endorsement_policy_ref = 1; * @param value The bytes for endorsementPolicyRef to set. * @return This builder for chaining. */ public Builder setEndorsementPolicyRefBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPolicyRef_ = value; 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:protos.VSCCArgs) } // @@protoc_insertion_point(class_scope:protos.VSCCArgs) private static final org.hyperledger.fabric.protos.peer.Resources.VSCCArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Resources.VSCCArgs(); } public static org.hyperledger.fabric.protos.peer.Resources.VSCCArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VSCCArgs 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.Resources.VSCCArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeEndorsementOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.ChaincodeEndorsement) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies what code to run for endorsements, defaults 'escc'
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Specifies what code to run for endorsements, defaults 'escc'
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * ChaincodeEndorsement instructs the peer how transactions should be endorsed.  The only
   * endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism.
   * This code simply simulates the proposal to generate a RW set, then signs the result
   * using the peer's local signing identity.
   * 
* * Protobuf type {@code protos.ChaincodeEndorsement} */ public static final class ChaincodeEndorsement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ChaincodeEndorsement) ChaincodeEndorsementOrBuilder { private static final long serialVersionUID = 0L; // Use ChaincodeEndorsement.newBuilder() to construct. private ChaincodeEndorsement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeEndorsement() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeEndorsement(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeEndorsement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeEndorsement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement.class, org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Specifies what code to run for endorsements, defaults 'escc'
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Specifies what code to run for endorsements, defaults 'escc'
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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.Resources.ChaincodeEndorsement)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement other = (org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement) obj; if (!getName() .equals(other.getName())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement 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.Resources.ChaincodeEndorsement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement 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.Resources.ChaincodeEndorsement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement 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.Resources.ChaincodeEndorsement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement 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.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement 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.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement 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.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement 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; } /** *
     * ChaincodeEndorsement instructs the peer how transactions should be endorsed.  The only
     * endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism.
     * This code simply simulates the proposal to generate a RW set, then signs the result
     * using the peer's local signing identity.
     * 
* * Protobuf type {@code protos.ChaincodeEndorsement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeEndorsement) org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeEndorsement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeEndorsement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement.class, org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ChaincodeEndorsement_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement build() { org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement buildPartial() { org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement result = new org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement(this); result.name_ = name_; 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.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement) { return mergeFrom((org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement other) { if (other == org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } 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: { name_ = input.readStringRequireUtf8(); 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 java.lang.Object name_ = ""; /** *
       * Specifies what code to run for endorsements, defaults 'escc'
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies what code to run for endorsements, defaults 'escc'
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies what code to run for endorsements, defaults 'escc'
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Specifies what code to run for endorsements, defaults 'escc'
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Specifies what code to run for endorsements, defaults 'escc'
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; 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:protos.ChaincodeEndorsement) } // @@protoc_insertion_point(class_scope:protos.ChaincodeEndorsement) private static final org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement(); } public static org.hyperledger.fabric.protos.peer.Resources.ChaincodeEndorsement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeEndorsement 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.Resources.ChaincodeEndorsement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigTreeOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.ConfigTree) com.google.protobuf.MessageOrBuilder { /** * .common.Config channel_config = 1; * @return Whether the channelConfig field is set. */ boolean hasChannelConfig(); /** * .common.Config channel_config = 1; * @return The channelConfig. */ org.hyperledger.fabric.protos.common.Configtx.Config getChannelConfig(); /** * .common.Config channel_config = 1; */ org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getChannelConfigOrBuilder(); /** * .common.Config resources_config = 2; * @return Whether the resourcesConfig field is set. */ boolean hasResourcesConfig(); /** * .common.Config resources_config = 2; * @return The resourcesConfig. */ org.hyperledger.fabric.protos.common.Configtx.Config getResourcesConfig(); /** * .common.Config resources_config = 2; */ org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getResourcesConfigOrBuilder(); } /** *
   * ConfigTree encapsulates channel and resources configuration of a channel.
   * Both configurations are represented as common.Config
   * 
* * Protobuf type {@code protos.ConfigTree} */ public static final class ConfigTree extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ConfigTree) ConfigTreeOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigTree.newBuilder() to construct. private ConfigTree(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigTree() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigTree(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ConfigTree_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ConfigTree_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ConfigTree.class, org.hyperledger.fabric.protos.peer.Resources.ConfigTree.Builder.class); } public static final int CHANNEL_CONFIG_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.common.Configtx.Config channelConfig_; /** * .common.Config channel_config = 1; * @return Whether the channelConfig field is set. */ @java.lang.Override public boolean hasChannelConfig() { return channelConfig_ != null; } /** * .common.Config channel_config = 1; * @return The channelConfig. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.Config getChannelConfig() { return channelConfig_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : channelConfig_; } /** * .common.Config channel_config = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getChannelConfigOrBuilder() { return getChannelConfig(); } public static final int RESOURCES_CONFIG_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.common.Configtx.Config resourcesConfig_; /** * .common.Config resources_config = 2; * @return Whether the resourcesConfig field is set. */ @java.lang.Override public boolean hasResourcesConfig() { return resourcesConfig_ != null; } /** * .common.Config resources_config = 2; * @return The resourcesConfig. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.Config getResourcesConfig() { return resourcesConfig_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : resourcesConfig_; } /** * .common.Config resources_config = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getResourcesConfigOrBuilder() { return getResourcesConfig(); } 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 (channelConfig_ != null) { output.writeMessage(1, getChannelConfig()); } if (resourcesConfig_ != null) { output.writeMessage(2, getResourcesConfig()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (channelConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChannelConfig()); } if (resourcesConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResourcesConfig()); } 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.Resources.ConfigTree)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Resources.ConfigTree other = (org.hyperledger.fabric.protos.peer.Resources.ConfigTree) obj; if (hasChannelConfig() != other.hasChannelConfig()) return false; if (hasChannelConfig()) { if (!getChannelConfig() .equals(other.getChannelConfig())) return false; } if (hasResourcesConfig() != other.hasResourcesConfig()) return false; if (hasResourcesConfig()) { if (!getResourcesConfig() .equals(other.getResourcesConfig())) 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 (hasChannelConfig()) { hash = (37 * hash) + CHANNEL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getChannelConfig().hashCode(); } if (hasResourcesConfig()) { hash = (37 * hash) + RESOURCES_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getResourcesConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree 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.Resources.ConfigTree parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree 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.Resources.ConfigTree parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree 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.Resources.ConfigTree parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree 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.hyperledger.fabric.protos.peer.Resources.ConfigTree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree 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.hyperledger.fabric.protos.peer.Resources.ConfigTree parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree 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.hyperledger.fabric.protos.peer.Resources.ConfigTree 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; } /** *
     * ConfigTree encapsulates channel and resources configuration of a channel.
     * Both configurations are represented as common.Config
     * 
* * Protobuf type {@code protos.ConfigTree} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ConfigTree) org.hyperledger.fabric.protos.peer.Resources.ConfigTreeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ConfigTree_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ConfigTree_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Resources.ConfigTree.class, org.hyperledger.fabric.protos.peer.Resources.ConfigTree.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Resources.ConfigTree.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (channelConfigBuilder_ == null) { channelConfig_ = null; } else { channelConfig_ = null; channelConfigBuilder_ = null; } if (resourcesConfigBuilder_ == null) { resourcesConfig_ = null; } else { resourcesConfig_ = null; resourcesConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Resources.internal_static_protos_ConfigTree_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ConfigTree getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Resources.ConfigTree.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ConfigTree build() { org.hyperledger.fabric.protos.peer.Resources.ConfigTree result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Resources.ConfigTree buildPartial() { org.hyperledger.fabric.protos.peer.Resources.ConfigTree result = new org.hyperledger.fabric.protos.peer.Resources.ConfigTree(this); if (channelConfigBuilder_ == null) { result.channelConfig_ = channelConfig_; } else { result.channelConfig_ = channelConfigBuilder_.build(); } if (resourcesConfigBuilder_ == null) { result.resourcesConfig_ = resourcesConfig_; } else { result.resourcesConfig_ = resourcesConfigBuilder_.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.hyperledger.fabric.protos.peer.Resources.ConfigTree) { return mergeFrom((org.hyperledger.fabric.protos.peer.Resources.ConfigTree)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Resources.ConfigTree other) { if (other == org.hyperledger.fabric.protos.peer.Resources.ConfigTree.getDefaultInstance()) return this; if (other.hasChannelConfig()) { mergeChannelConfig(other.getChannelConfig()); } if (other.hasResourcesConfig()) { mergeResourcesConfig(other.getResourcesConfig()); } 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.readMessage( getChannelConfigFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getResourcesConfigFieldBuilder().getBuilder(), extensionRegistry); 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 org.hyperledger.fabric.protos.common.Configtx.Config channelConfig_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder> channelConfigBuilder_; /** * .common.Config channel_config = 1; * @return Whether the channelConfig field is set. */ public boolean hasChannelConfig() { return channelConfigBuilder_ != null || channelConfig_ != null; } /** * .common.Config channel_config = 1; * @return The channelConfig. */ public org.hyperledger.fabric.protos.common.Configtx.Config getChannelConfig() { if (channelConfigBuilder_ == null) { return channelConfig_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : channelConfig_; } else { return channelConfigBuilder_.getMessage(); } } /** * .common.Config channel_config = 1; */ public Builder setChannelConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) { if (channelConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } channelConfig_ = value; onChanged(); } else { channelConfigBuilder_.setMessage(value); } return this; } /** * .common.Config channel_config = 1; */ public Builder setChannelConfig( org.hyperledger.fabric.protos.common.Configtx.Config.Builder builderForValue) { if (channelConfigBuilder_ == null) { channelConfig_ = builderForValue.build(); onChanged(); } else { channelConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** * .common.Config channel_config = 1; */ public Builder mergeChannelConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) { if (channelConfigBuilder_ == null) { if (channelConfig_ != null) { channelConfig_ = org.hyperledger.fabric.protos.common.Configtx.Config.newBuilder(channelConfig_).mergeFrom(value).buildPartial(); } else { channelConfig_ = value; } onChanged(); } else { channelConfigBuilder_.mergeFrom(value); } return this; } /** * .common.Config channel_config = 1; */ public Builder clearChannelConfig() { if (channelConfigBuilder_ == null) { channelConfig_ = null; onChanged(); } else { channelConfig_ = null; channelConfigBuilder_ = null; } return this; } /** * .common.Config channel_config = 1; */ public org.hyperledger.fabric.protos.common.Configtx.Config.Builder getChannelConfigBuilder() { onChanged(); return getChannelConfigFieldBuilder().getBuilder(); } /** * .common.Config channel_config = 1; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getChannelConfigOrBuilder() { if (channelConfigBuilder_ != null) { return channelConfigBuilder_.getMessageOrBuilder(); } else { return channelConfig_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : channelConfig_; } } /** * .common.Config channel_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder> getChannelConfigFieldBuilder() { if (channelConfigBuilder_ == null) { channelConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder>( getChannelConfig(), getParentForChildren(), isClean()); channelConfig_ = null; } return channelConfigBuilder_; } private org.hyperledger.fabric.protos.common.Configtx.Config resourcesConfig_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder> resourcesConfigBuilder_; /** * .common.Config resources_config = 2; * @return Whether the resourcesConfig field is set. */ public boolean hasResourcesConfig() { return resourcesConfigBuilder_ != null || resourcesConfig_ != null; } /** * .common.Config resources_config = 2; * @return The resourcesConfig. */ public org.hyperledger.fabric.protos.common.Configtx.Config getResourcesConfig() { if (resourcesConfigBuilder_ == null) { return resourcesConfig_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : resourcesConfig_; } else { return resourcesConfigBuilder_.getMessage(); } } /** * .common.Config resources_config = 2; */ public Builder setResourcesConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) { if (resourcesConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourcesConfig_ = value; onChanged(); } else { resourcesConfigBuilder_.setMessage(value); } return this; } /** * .common.Config resources_config = 2; */ public Builder setResourcesConfig( org.hyperledger.fabric.protos.common.Configtx.Config.Builder builderForValue) { if (resourcesConfigBuilder_ == null) { resourcesConfig_ = builderForValue.build(); onChanged(); } else { resourcesConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** * .common.Config resources_config = 2; */ public Builder mergeResourcesConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) { if (resourcesConfigBuilder_ == null) { if (resourcesConfig_ != null) { resourcesConfig_ = org.hyperledger.fabric.protos.common.Configtx.Config.newBuilder(resourcesConfig_).mergeFrom(value).buildPartial(); } else { resourcesConfig_ = value; } onChanged(); } else { resourcesConfigBuilder_.mergeFrom(value); } return this; } /** * .common.Config resources_config = 2; */ public Builder clearResourcesConfig() { if (resourcesConfigBuilder_ == null) { resourcesConfig_ = null; onChanged(); } else { resourcesConfig_ = null; resourcesConfigBuilder_ = null; } return this; } /** * .common.Config resources_config = 2; */ public org.hyperledger.fabric.protos.common.Configtx.Config.Builder getResourcesConfigBuilder() { onChanged(); return getResourcesConfigFieldBuilder().getBuilder(); } /** * .common.Config resources_config = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getResourcesConfigOrBuilder() { if (resourcesConfigBuilder_ != null) { return resourcesConfigBuilder_.getMessageOrBuilder(); } else { return resourcesConfig_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : resourcesConfig_; } } /** * .common.Config resources_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder> getResourcesConfigFieldBuilder() { if (resourcesConfigBuilder_ == null) { resourcesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder>( getResourcesConfig(), getParentForChildren(), isClean()); resourcesConfig_ = null; } return resourcesConfigBuilder_; } @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:protos.ConfigTree) } // @@protoc_insertion_point(class_scope:protos.ConfigTree) private static final org.hyperledger.fabric.protos.peer.Resources.ConfigTree DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Resources.ConfigTree(); } public static org.hyperledger.fabric.protos.peer.Resources.ConfigTree getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigTree 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.Resources.ConfigTree getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_ChaincodeIdentifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_ChaincodeIdentifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_ChaincodeValidation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_ChaincodeValidation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_VSCCArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_VSCCArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_ChaincodeEndorsement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_ChaincodeEndorsement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_ConfigTree_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_ConfigTree_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\024peer/resources.proto\022\006protos\032\025common/c" + "onfigtx.proto\"4\n\023ChaincodeIdentifier\022\014\n\004" + "hash\030\001 \001(\014\022\017\n\007version\030\002 \001(\t\"5\n\023Chaincode" + "Validation\022\014\n\004name\030\001 \001(\t\022\020\n\010argument\030\002 \001" + "(\014\"*\n\010VSCCArgs\022\036\n\026endorsement_policy_ref" + "\030\001 \001(\t\"$\n\024ChaincodeEndorsement\022\014\n\004name\030\001" + " \001(\t\"^\n\nConfigTree\022&\n\016channel_config\030\001 \001" + "(\0132\016.common.Config\022(\n\020resources_config\030\002" + " \001(\0132\016.common.ConfigBR\n\"org.hyperledger." + "fabric.protos.peerZ,github.com/hyperledg" + "er/fabric-protos-go/peerb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.common.Configtx.getDescriptor(), }); internal_static_protos_ChaincodeIdentifier_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protos_ChaincodeIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_ChaincodeIdentifier_descriptor, new java.lang.String[] { "Hash", "Version", }); internal_static_protos_ChaincodeValidation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protos_ChaincodeValidation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_ChaincodeValidation_descriptor, new java.lang.String[] { "Name", "Argument", }); internal_static_protos_VSCCArgs_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protos_VSCCArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_VSCCArgs_descriptor, new java.lang.String[] { "EndorsementPolicyRef", }); internal_static_protos_ChaincodeEndorsement_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protos_ChaincodeEndorsement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_ChaincodeEndorsement_descriptor, new java.lang.String[] { "Name", }); internal_static_protos_ConfigTree_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protos_ConfigTree_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_ConfigTree_descriptor, new java.lang.String[] { "ChannelConfig", "ResourcesConfig", }); org.hyperledger.fabric.protos.common.Configtx.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy