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

org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle 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/lifecycle/lifecycle.proto

package org.hyperledger.fabric.protos.peer.lifecycle;

public final class Lifecycle {
  private Lifecycle() {}
  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 InstallChaincodeArgsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:lifecycle.InstallChaincodeArgs)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * This should be a marshaled lifecycle.ChaincodePackage
     * 
* * bytes chaincode_install_package = 1; * @return The chaincodeInstallPackage. */ com.google.protobuf.ByteString getChaincodeInstallPackage(); } /** *
   * InstallChaincodeArgs is the message used as the argument to
   * '_lifecycle.InstallChaincode'.
   * 
* * Protobuf type {@code lifecycle.InstallChaincodeArgs} */ public static final class InstallChaincodeArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.InstallChaincodeArgs) InstallChaincodeArgsOrBuilder { private static final long serialVersionUID = 0L; // Use InstallChaincodeArgs.newBuilder() to construct. private InstallChaincodeArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InstallChaincodeArgs() { chaincodeInstallPackage_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InstallChaincodeArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs.Builder.class); } public static final int CHAINCODE_INSTALL_PACKAGE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString chaincodeInstallPackage_; /** *
     * This should be a marshaled lifecycle.ChaincodePackage
     * 
* * bytes chaincode_install_package = 1; * @return The chaincodeInstallPackage. */ @java.lang.Override public com.google.protobuf.ByteString getChaincodeInstallPackage() { return chaincodeInstallPackage_; } 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 (!chaincodeInstallPackage_.isEmpty()) { output.writeBytes(1, chaincodeInstallPackage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!chaincodeInstallPackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, chaincodeInstallPackage_); } 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.lifecycle.Lifecycle.InstallChaincodeArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs) obj; if (!getChaincodeInstallPackage() .equals(other.getChaincodeInstallPackage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHAINCODE_INSTALL_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getChaincodeInstallPackage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs 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; } /** *
     * InstallChaincodeArgs is the message used as the argument to
     * '_lifecycle.InstallChaincode'.
     * 
* * Protobuf type {@code lifecycle.InstallChaincodeArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.InstallChaincodeArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); chaincodeInstallPackage_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs(this); result.chaincodeInstallPackage_ = chaincodeInstallPackage_; 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.lifecycle.Lifecycle.InstallChaincodeArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs.getDefaultInstance()) return this; if (other.getChaincodeInstallPackage() != com.google.protobuf.ByteString.EMPTY) { setChaincodeInstallPackage(other.getChaincodeInstallPackage()); } 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: { chaincodeInstallPackage_ = input.readBytes(); 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 com.google.protobuf.ByteString chaincodeInstallPackage_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This should be a marshaled lifecycle.ChaincodePackage
       * 
* * bytes chaincode_install_package = 1; * @return The chaincodeInstallPackage. */ @java.lang.Override public com.google.protobuf.ByteString getChaincodeInstallPackage() { return chaincodeInstallPackage_; } /** *
       * This should be a marshaled lifecycle.ChaincodePackage
       * 
* * bytes chaincode_install_package = 1; * @param value The chaincodeInstallPackage to set. * @return This builder for chaining. */ public Builder setChaincodeInstallPackage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } chaincodeInstallPackage_ = value; onChanged(); return this; } /** *
       * This should be a marshaled lifecycle.ChaincodePackage
       * 
* * bytes chaincode_install_package = 1; * @return This builder for chaining. */ public Builder clearChaincodeInstallPackage() { chaincodeInstallPackage_ = getDefaultInstance().getChaincodeInstallPackage(); 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:lifecycle.InstallChaincodeArgs) } // @@protoc_insertion_point(class_scope:lifecycle.InstallChaincodeArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstallChaincodeArgs 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.lifecycle.Lifecycle.InstallChaincodeArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InstallChaincodeResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.InstallChaincodeResult) com.google.protobuf.MessageOrBuilder { /** * string package_id = 1; * @return The packageId. */ java.lang.String getPackageId(); /** * string package_id = 1; * @return The bytes for packageId. */ com.google.protobuf.ByteString getPackageIdBytes(); /** * string label = 2; * @return The label. */ java.lang.String getLabel(); /** * string label = 2; * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); } /** *
   * InstallChaincodeArgs is the message returned by
   * '_lifecycle.InstallChaincode'.
   * 
* * Protobuf type {@code lifecycle.InstallChaincodeResult} */ public static final class InstallChaincodeResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.InstallChaincodeResult) InstallChaincodeResultOrBuilder { private static final long serialVersionUID = 0L; // Use InstallChaincodeResult.newBuilder() to construct. private InstallChaincodeResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InstallChaincodeResult() { packageId_ = ""; label_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InstallChaincodeResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult.Builder.class); } public static final int PACKAGE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object packageId_; /** * string package_id = 1; * @return The packageId. */ @java.lang.Override public java.lang.String getPackageId() { java.lang.Object ref = packageId_; 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(); packageId_ = s; return s; } } /** * string package_id = 1; * @return The bytes for packageId. */ @java.lang.Override public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABEL_FIELD_NUMBER = 2; private volatile java.lang.Object label_; /** * string label = 2; * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; 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(); label_ = s; return s; } } /** * string label = 2; * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = 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(packageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); } 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(packageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); } 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.lifecycle.Lifecycle.InstallChaincodeResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult) obj; if (!getPackageId() .equals(other.getPackageId())) return false; if (!getLabel() .equals(other.getLabel())) 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) + PACKAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getPackageId().hashCode(); hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult 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; } /** *
     * InstallChaincodeArgs is the message returned by
     * '_lifecycle.InstallChaincode'.
     * 
* * Protobuf type {@code lifecycle.InstallChaincodeResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.InstallChaincodeResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packageId_ = ""; label_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_InstallChaincodeResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult(this); result.packageId_ = packageId_; result.label_ = label_; 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.lifecycle.Lifecycle.InstallChaincodeResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult.getDefaultInstance()) return this; if (!other.getPackageId().isEmpty()) { packageId_ = other.packageId_; onChanged(); } if (!other.getLabel().isEmpty()) { label_ = other.label_; 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: { packageId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { label_ = 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 java.lang.Object packageId_ = ""; /** * string package_id = 1; * @return The packageId. */ public java.lang.String getPackageId() { java.lang.Object ref = packageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string package_id = 1; * @return The bytes for packageId. */ public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string package_id = 1; * @param value The packageId to set. * @return This builder for chaining. */ public Builder setPackageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageId_ = value; onChanged(); return this; } /** * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); onChanged(); return this; } /** * string package_id = 1; * @param value The bytes for packageId to set. * @return This builder for chaining. */ public Builder setPackageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageId_ = value; onChanged(); return this; } private java.lang.Object label_ = ""; /** * string label = 2; * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * string label = 2; * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string label = 2; * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * string label = 2; * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * string label = 2; * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = 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:lifecycle.InstallChaincodeResult) } // @@protoc_insertion_point(class_scope:lifecycle.InstallChaincodeResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.InstallChaincodeResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstallChaincodeResult 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.lifecycle.Lifecycle.InstallChaincodeResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryInstalledChaincodeArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodeArgs) com.google.protobuf.MessageOrBuilder { /** * string package_id = 1; * @return The packageId. */ java.lang.String getPackageId(); /** * string package_id = 1; * @return The bytes for packageId. */ com.google.protobuf.ByteString getPackageIdBytes(); } /** *
   * QueryInstalledChaincodeArgs is the message used as arguments
   * '_lifecycle.QueryInstalledChaincode'
   * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodeArgs} */ public static final class QueryInstalledChaincodeArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodeArgs) QueryInstalledChaincodeArgsOrBuilder { private static final long serialVersionUID = 0L; // Use QueryInstalledChaincodeArgs.newBuilder() to construct. private QueryInstalledChaincodeArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryInstalledChaincodeArgs() { packageId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryInstalledChaincodeArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs.Builder.class); } public static final int PACKAGE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object packageId_; /** * string package_id = 1; * @return The packageId. */ @java.lang.Override public java.lang.String getPackageId() { java.lang.Object ref = packageId_; 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(); packageId_ = s; return s; } } /** * string package_id = 1; * @return The bytes for packageId. */ @java.lang.Override public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = 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(packageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_); } 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(packageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_); } 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs) obj; if (!getPackageId() .equals(other.getPackageId())) 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) + PACKAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getPackageId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs 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; } /** *
     * QueryInstalledChaincodeArgs is the message used as arguments
     * '_lifecycle.QueryInstalledChaincode'
     * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodeArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodeArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packageId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs(this); result.packageId_ = packageId_; 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs.getDefaultInstance()) return this; if (!other.getPackageId().isEmpty()) { packageId_ = other.packageId_; 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: { packageId_ = 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 packageId_ = ""; /** * string package_id = 1; * @return The packageId. */ public java.lang.String getPackageId() { java.lang.Object ref = packageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string package_id = 1; * @return The bytes for packageId. */ public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string package_id = 1; * @param value The packageId to set. * @return This builder for chaining. */ public Builder setPackageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageId_ = value; onChanged(); return this; } /** * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); onChanged(); return this; } /** * string package_id = 1; * @param value The bytes for packageId to set. * @return This builder for chaining. */ public Builder setPackageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageId_ = 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:lifecycle.QueryInstalledChaincodeArgs) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodeArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryInstalledChaincodeArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodeArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryInstalledChaincodeResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodeResult) com.google.protobuf.MessageOrBuilder { /** * string package_id = 1; * @return The packageId. */ java.lang.String getPackageId(); /** * string package_id = 1; * @return The bytes for packageId. */ com.google.protobuf.ByteString getPackageIdBytes(); /** * string label = 2; * @return The label. */ java.lang.String getLabel(); /** * string label = 2; * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ int getReferencesCount(); /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ boolean containsReferences( java.lang.String key); /** * Use {@link #getReferencesMap()} instead. */ @java.lang.Deprecated java.util.Map getReferences(); /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ java.util.Map getReferencesMap(); /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getReferencesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References defaultValue); /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getReferencesOrThrow( java.lang.String key); } /** *
   * QueryInstalledChaincodeResult is the message returned by
   * '_lifecycle.QueryInstalledChaincode'
   * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodeResult} */ public static final class QueryInstalledChaincodeResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodeResult) QueryInstalledChaincodeResultOrBuilder { private static final long serialVersionUID = 0L; // Use QueryInstalledChaincodeResult.newBuilder() to construct. private QueryInstalledChaincodeResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryInstalledChaincodeResult() { packageId_ = ""; label_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryInstalledChaincodeResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetReferences(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Builder.class); } public interface ReferencesOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodeResult.References) com.google.protobuf.MessageOrBuilder { /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ java.util.List getChaincodesList(); /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode getChaincodes(int index); /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ int getChaincodesCount(); /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ java.util.List getChaincodesOrBuilderList(); /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ChaincodeOrBuilder getChaincodesOrBuilder( int index); } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodeResult.References} */ public static final class References extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodeResult.References) ReferencesOrBuilder { private static final long serialVersionUID = 0L; // Use References.newBuilder() to construct. private References(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private References() { chaincodes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new References(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_References_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_References_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.Builder.class); } public static final int CHAINCODES_FIELD_NUMBER = 1; private java.util.List chaincodes_; /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ @java.lang.Override public java.util.List getChaincodesList() { return chaincodes_; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ @java.lang.Override public java.util.List getChaincodesOrBuilderList() { return chaincodes_; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ @java.lang.Override public int getChaincodesCount() { return chaincodes_.size(); } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode getChaincodes(int index) { return chaincodes_.get(index); } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ChaincodeOrBuilder getChaincodesOrBuilder( int index) { return chaincodes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < chaincodes_.size(); i++) { output.writeMessage(1, chaincodes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < chaincodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, chaincodes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References) obj; if (!getChaincodesList() .equals(other.getChaincodesList())) 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 (getChaincodesCount() > 0) { hash = (37 * hash) + CHAINCODES_FIELD_NUMBER; hash = (53 * hash) + getChaincodesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodeResult.References} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodeResult.References) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ReferencesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_References_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_References_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); } else { chaincodes_ = null; chaincodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_References_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References(this); int from_bitField0_ = bitField0_; if (chaincodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodes_ = chaincodes_; } else { result.chaincodes_ = chaincodesBuilder_.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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.getDefaultInstance()) return this; if (chaincodesBuilder_ == null) { if (!other.chaincodes_.isEmpty()) { if (chaincodes_.isEmpty()) { chaincodes_ = other.chaincodes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChaincodesIsMutable(); chaincodes_.addAll(other.chaincodes_); } onChanged(); } } else { if (!other.chaincodes_.isEmpty()) { if (chaincodesBuilder_.isEmpty()) { chaincodesBuilder_.dispose(); chaincodesBuilder_ = null; chaincodes_ = other.chaincodes_; bitField0_ = (bitField0_ & ~0x00000001); chaincodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChaincodesFieldBuilder() : null; } else { chaincodesBuilder_.addAllMessages(other.chaincodes_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode m = input.readMessage( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.parser(), extensionRegistry); if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(m); } else { chaincodesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List chaincodes_ = java.util.Collections.emptyList(); private void ensureChaincodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { chaincodes_ = new java.util.ArrayList(chaincodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ChaincodeOrBuilder> chaincodesBuilder_; /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public java.util.List getChaincodesList() { if (chaincodesBuilder_ == null) { return java.util.Collections.unmodifiableList(chaincodes_); } else { return chaincodesBuilder_.getMessageList(); } } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public int getChaincodesCount() { if (chaincodesBuilder_ == null) { return chaincodes_.size(); } else { return chaincodesBuilder_.getCount(); } } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode getChaincodes(int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessage(index); } } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.set(index, value); onChanged(); } else { chaincodesBuilder_.setMessage(index, value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.set(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder addChaincodes(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(value); onChanged(); } else { chaincodesBuilder_.addMessage(value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(index, value); onChanged(); } else { chaincodesBuilder_.addMessage(index, value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder addChaincodes( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder addAllChaincodes( java.lang.Iterable values) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chaincodes_); onChanged(); } else { chaincodesBuilder_.addAllMessages(values); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder clearChaincodes() { if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { chaincodesBuilder_.clear(); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public Builder removeChaincodes(int index) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.remove(index); onChanged(); } else { chaincodesBuilder_.remove(index); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder getChaincodesBuilder( int index) { return getChaincodesFieldBuilder().getBuilder(index); } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ChaincodeOrBuilder getChaincodesOrBuilder( int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessageOrBuilder(index); } } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public java.util.List getChaincodesOrBuilderList() { if (chaincodesBuilder_ != null) { return chaincodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chaincodes_); } } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder addChaincodesBuilder() { return getChaincodesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.getDefaultInstance()); } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder addChaincodesBuilder( int index) { return getChaincodesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.getDefaultInstance()); } /** * repeated .lifecycle.QueryInstalledChaincodeResult.Chaincode chaincodes = 1; */ public java.util.List getChaincodesBuilderList() { return getChaincodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ChaincodeOrBuilder> getChaincodesFieldBuilder() { if (chaincodesBuilder_ == null) { chaincodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ChaincodeOrBuilder>( chaincodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); chaincodes_ = null; } return chaincodesBuilder_; } @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:lifecycle.QueryInstalledChaincodeResult.References) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodeResult.References) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public References 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodeResult.Chaincode) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string version = 2; * @return The version. */ java.lang.String getVersion(); /** * string version = 2; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodeResult.Chaincode} */ public static final class Chaincode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodeResult.Chaincode) ChaincodeOrBuilder { private static final long serialVersionUID = 0L; // Use Chaincode.newBuilder() to construct. private Chaincode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Chaincode() { name_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Chaincode(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * 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; } } /** * 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 VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** * 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; } } /** * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode) obj; if (!getName() .equals(other.getName())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodeResult.Chaincode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodeResult.Chaincode) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.ChaincodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; version_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode(this); result.name_ = name_; 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } 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: { name_ = input.readStringRequireUtf8(); 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 java.lang.Object name_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * 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 java.lang.Object version_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string version = 2; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * 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:lifecycle.QueryInstalledChaincodeResult.Chaincode) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodeResult.Chaincode) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Chaincode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PACKAGE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object packageId_; /** * string package_id = 1; * @return The packageId. */ @java.lang.Override public java.lang.String getPackageId() { java.lang.Object ref = packageId_; 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(); packageId_ = s; return s; } } /** * string package_id = 1; * @return The bytes for packageId. */ @java.lang.Override public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABEL_FIELD_NUMBER = 2; private volatile java.lang.Object label_; /** * string label = 2; * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; 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(); label_ = s; return s; } } /** * string label = 2; * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REFERENCES_FIELD_NUMBER = 3; private static final class ReferencesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_ReferencesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References> references_; private com.google.protobuf.MapField internalGetReferences() { if (references_ == null) { return com.google.protobuf.MapField.emptyMapField( ReferencesDefaultEntryHolder.defaultEntry); } return references_; } public int getReferencesCount() { return internalGetReferences().getMap().size(); } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public boolean containsReferences( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetReferences().getMap().containsKey(key); } /** * Use {@link #getReferencesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getReferences() { return getReferencesMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public java.util.Map getReferencesMap() { return internalGetReferences().getMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getReferencesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getReferencesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetReferences(), ReferencesDefaultEntryHolder.defaultEntry, 3); 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(packageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); } for (java.util.Map.Entry entry : internalGetReferences().getMap().entrySet()) { com.google.protobuf.MapEntry references__ = ReferencesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, references__); } 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult) obj; if (!getPackageId() .equals(other.getPackageId())) return false; if (!getLabel() .equals(other.getLabel())) return false; if (!internalGetReferences().equals( other.internalGetReferences())) 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) + PACKAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getPackageId().hashCode(); hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); if (!internalGetReferences().getMap().isEmpty()) { hash = (37 * hash) + REFERENCES_FIELD_NUMBER; hash = (53 * hash) + internalGetReferences().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult 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; } /** *
     * QueryInstalledChaincodeResult is the message returned by
     * '_lifecycle.QueryInstalledChaincode'
     * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodeResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodeResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetReferences(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableReferences(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packageId_ = ""; label_ = ""; internalGetMutableReferences().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult(this); int from_bitField0_ = bitField0_; result.packageId_ = packageId_; result.label_ = label_; result.references_ = internalGetReferences(); result.references_.makeImmutable(); 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.getDefaultInstance()) return this; if (!other.getPackageId().isEmpty()) { packageId_ = other.packageId_; onChanged(); } if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); } internalGetMutableReferences().mergeFrom( other.internalGetReferences()); 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: { packageId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { label_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { com.google.protobuf.MapEntry references__ = input.readMessage( ReferencesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableReferences().getMutableMap().put( references__.getKey(), references__.getValue()); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object packageId_ = ""; /** * string package_id = 1; * @return The packageId. */ public java.lang.String getPackageId() { java.lang.Object ref = packageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string package_id = 1; * @return The bytes for packageId. */ public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string package_id = 1; * @param value The packageId to set. * @return This builder for chaining. */ public Builder setPackageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageId_ = value; onChanged(); return this; } /** * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); onChanged(); return this; } /** * string package_id = 1; * @param value The bytes for packageId to set. * @return This builder for chaining. */ public Builder setPackageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageId_ = value; onChanged(); return this; } private java.lang.Object label_ = ""; /** * string label = 2; * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * string label = 2; * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string label = 2; * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * string label = 2; * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * string label = 2; * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References> references_; private com.google.protobuf.MapField internalGetReferences() { if (references_ == null) { return com.google.protobuf.MapField.emptyMapField( ReferencesDefaultEntryHolder.defaultEntry); } return references_; } private com.google.protobuf.MapField internalGetMutableReferences() { onChanged();; if (references_ == null) { references_ = com.google.protobuf.MapField.newMapField( ReferencesDefaultEntryHolder.defaultEntry); } if (!references_.isMutable()) { references_ = references_.copy(); } return references_; } public int getReferencesCount() { return internalGetReferences().getMap().size(); } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public boolean containsReferences( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetReferences().getMap().containsKey(key); } /** * Use {@link #getReferencesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getReferences() { return getReferencesMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public java.util.Map getReferencesMap() { return internalGetReferences().getMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getReferencesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References getReferencesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearReferences() { internalGetMutableReferences().getMutableMap() .clear(); return this; } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ public Builder removeReferences( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableReferences().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableReferences() { return internalGetMutableReferences().getMutableMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ public Builder putReferences( java.lang.String key, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult.References value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableReferences().getMutableMap() .put(key, value); return this; } /** * map<string, .lifecycle.QueryInstalledChaincodeResult.References> references = 3; */ public Builder putAllReferences( java.util.Map values) { internalGetMutableReferences().getMutableMap() .putAll(values); 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:lifecycle.QueryInstalledChaincodeResult) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodeResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodeResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryInstalledChaincodeResult 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.lifecycle.Lifecycle.QueryInstalledChaincodeResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetInstalledChaincodePackageArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.GetInstalledChaincodePackageArgs) com.google.protobuf.MessageOrBuilder { /** * string package_id = 1; * @return The packageId. */ java.lang.String getPackageId(); /** * string package_id = 1; * @return The bytes for packageId. */ com.google.protobuf.ByteString getPackageIdBytes(); } /** *
   * GetInstalledChaincodePackageArgs is the message used as the argument to
   * '_lifecycle.GetInstalledChaincodePackage'.
   * 
* * Protobuf type {@code lifecycle.GetInstalledChaincodePackageArgs} */ public static final class GetInstalledChaincodePackageArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.GetInstalledChaincodePackageArgs) GetInstalledChaincodePackageArgsOrBuilder { private static final long serialVersionUID = 0L; // Use GetInstalledChaincodePackageArgs.newBuilder() to construct. private GetInstalledChaincodePackageArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetInstalledChaincodePackageArgs() { packageId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetInstalledChaincodePackageArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs.Builder.class); } public static final int PACKAGE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object packageId_; /** * string package_id = 1; * @return The packageId. */ @java.lang.Override public java.lang.String getPackageId() { java.lang.Object ref = packageId_; 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(); packageId_ = s; return s; } } /** * string package_id = 1; * @return The bytes for packageId. */ @java.lang.Override public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = 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(packageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_); } 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(packageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_); } 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs) obj; if (!getPackageId() .equals(other.getPackageId())) 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) + PACKAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getPackageId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs 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; } /** *
     * GetInstalledChaincodePackageArgs is the message used as the argument to
     * '_lifecycle.GetInstalledChaincodePackage'.
     * 
* * Protobuf type {@code lifecycle.GetInstalledChaincodePackageArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.GetInstalledChaincodePackageArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packageId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs(this); result.packageId_ = packageId_; 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs.getDefaultInstance()) return this; if (!other.getPackageId().isEmpty()) { packageId_ = other.packageId_; 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: { packageId_ = 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 packageId_ = ""; /** * string package_id = 1; * @return The packageId. */ public java.lang.String getPackageId() { java.lang.Object ref = packageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string package_id = 1; * @return The bytes for packageId. */ public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string package_id = 1; * @param value The packageId to set. * @return This builder for chaining. */ public Builder setPackageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageId_ = value; onChanged(); return this; } /** * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); onChanged(); return this; } /** * string package_id = 1; * @param value The bytes for packageId to set. * @return This builder for chaining. */ public Builder setPackageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageId_ = 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:lifecycle.GetInstalledChaincodePackageArgs) } // @@protoc_insertion_point(class_scope:lifecycle.GetInstalledChaincodePackageArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetInstalledChaincodePackageArgs 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.lifecycle.Lifecycle.GetInstalledChaincodePackageArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetInstalledChaincodePackageResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.GetInstalledChaincodePackageResult) com.google.protobuf.MessageOrBuilder { /** * bytes chaincode_install_package = 1; * @return The chaincodeInstallPackage. */ com.google.protobuf.ByteString getChaincodeInstallPackage(); } /** *
   * GetInstalledChaincodePackageResult is the message returned by
   * '_lifecycle.GetInstalledChaincodePackage'.
   * 
* * Protobuf type {@code lifecycle.GetInstalledChaincodePackageResult} */ public static final class GetInstalledChaincodePackageResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.GetInstalledChaincodePackageResult) GetInstalledChaincodePackageResultOrBuilder { private static final long serialVersionUID = 0L; // Use GetInstalledChaincodePackageResult.newBuilder() to construct. private GetInstalledChaincodePackageResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetInstalledChaincodePackageResult() { chaincodeInstallPackage_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetInstalledChaincodePackageResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult.Builder.class); } public static final int CHAINCODE_INSTALL_PACKAGE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString chaincodeInstallPackage_; /** * bytes chaincode_install_package = 1; * @return The chaincodeInstallPackage. */ @java.lang.Override public com.google.protobuf.ByteString getChaincodeInstallPackage() { return chaincodeInstallPackage_; } 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 (!chaincodeInstallPackage_.isEmpty()) { output.writeBytes(1, chaincodeInstallPackage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!chaincodeInstallPackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, chaincodeInstallPackage_); } 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult) obj; if (!getChaincodeInstallPackage() .equals(other.getChaincodeInstallPackage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHAINCODE_INSTALL_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getChaincodeInstallPackage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult 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; } /** *
     * GetInstalledChaincodePackageResult is the message returned by
     * '_lifecycle.GetInstalledChaincodePackage'.
     * 
* * Protobuf type {@code lifecycle.GetInstalledChaincodePackageResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.GetInstalledChaincodePackageResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); chaincodeInstallPackage_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_GetInstalledChaincodePackageResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult(this); result.chaincodeInstallPackage_ = chaincodeInstallPackage_; 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult.getDefaultInstance()) return this; if (other.getChaincodeInstallPackage() != com.google.protobuf.ByteString.EMPTY) { setChaincodeInstallPackage(other.getChaincodeInstallPackage()); } 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: { chaincodeInstallPackage_ = input.readBytes(); 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 com.google.protobuf.ByteString chaincodeInstallPackage_ = com.google.protobuf.ByteString.EMPTY; /** * bytes chaincode_install_package = 1; * @return The chaincodeInstallPackage. */ @java.lang.Override public com.google.protobuf.ByteString getChaincodeInstallPackage() { return chaincodeInstallPackage_; } /** * bytes chaincode_install_package = 1; * @param value The chaincodeInstallPackage to set. * @return This builder for chaining. */ public Builder setChaincodeInstallPackage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } chaincodeInstallPackage_ = value; onChanged(); return this; } /** * bytes chaincode_install_package = 1; * @return This builder for chaining. */ public Builder clearChaincodeInstallPackage() { chaincodeInstallPackage_ = getDefaultInstance().getChaincodeInstallPackage(); 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:lifecycle.GetInstalledChaincodePackageResult) } // @@protoc_insertion_point(class_scope:lifecycle.GetInstalledChaincodePackageResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.GetInstalledChaincodePackageResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetInstalledChaincodePackageResult 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.lifecycle.Lifecycle.GetInstalledChaincodePackageResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryInstalledChaincodesArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodesArgs) com.google.protobuf.MessageOrBuilder { } /** *
   * QueryInstalledChaincodesArgs currently is an empty argument to
   * '_lifecycle.QueryInstalledChaincodes'.   In the future, it may be
   * extended to have parameters.
   * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodesArgs} */ public static final class QueryInstalledChaincodesArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodesArgs) QueryInstalledChaincodesArgsOrBuilder { private static final long serialVersionUID = 0L; // Use QueryInstalledChaincodesArgs.newBuilder() to construct. private QueryInstalledChaincodesArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryInstalledChaincodesArgs() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryInstalledChaincodesArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs 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; } /** *
     * QueryInstalledChaincodesArgs currently is an empty argument to
     * '_lifecycle.QueryInstalledChaincodes'.   In the future, it may be
     * extended to have parameters.
     * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodesArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodesArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs(this); 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs.getDefaultInstance()) return this; 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; 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; } @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:lifecycle.QueryInstalledChaincodesArgs) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodesArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryInstalledChaincodesArgs 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.lifecycle.Lifecycle.QueryInstalledChaincodesArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryInstalledChaincodesResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodesResult) com.google.protobuf.MessageOrBuilder { /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ java.util.List getInstalledChaincodesList(); /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode getInstalledChaincodes(int index); /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ int getInstalledChaincodesCount(); /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ java.util.List getInstalledChaincodesOrBuilderList(); /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincodeOrBuilder getInstalledChaincodesOrBuilder( int index); } /** *
   * QueryInstalledChaincodesResult is the message returned by
   * '_lifecycle.QueryInstalledChaincodes'.  It returns a list of installed
   * chaincodes, including a map of channel name to chaincode name and version
   * pairs of chaincode definitions that reference this chaincode package.
   * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult} */ public static final class QueryInstalledChaincodesResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodesResult) QueryInstalledChaincodesResultOrBuilder { private static final long serialVersionUID = 0L; // Use QueryInstalledChaincodesResult.newBuilder() to construct. private QueryInstalledChaincodesResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryInstalledChaincodesResult() { installedChaincodes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryInstalledChaincodesResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Builder.class); } public interface InstalledChaincodeOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodesResult.InstalledChaincode) com.google.protobuf.MessageOrBuilder { /** * string package_id = 1; * @return The packageId. */ java.lang.String getPackageId(); /** * string package_id = 1; * @return The bytes for packageId. */ com.google.protobuf.ByteString getPackageIdBytes(); /** * string label = 2; * @return The label. */ java.lang.String getLabel(); /** * string label = 2; * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ int getReferencesCount(); /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ boolean containsReferences( java.lang.String key); /** * Use {@link #getReferencesMap()} instead. */ @java.lang.Deprecated java.util.Map getReferences(); /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ java.util.Map getReferencesMap(); /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getReferencesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References defaultValue); /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getReferencesOrThrow( java.lang.String key); } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult.InstalledChaincode} */ public static final class InstalledChaincode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodesResult.InstalledChaincode) InstalledChaincodeOrBuilder { private static final long serialVersionUID = 0L; // Use InstalledChaincode.newBuilder() to construct. private InstalledChaincode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InstalledChaincode() { packageId_ = ""; label_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InstalledChaincode(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetReferences(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder.class); } public static final int PACKAGE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object packageId_; /** * string package_id = 1; * @return The packageId. */ @java.lang.Override public java.lang.String getPackageId() { java.lang.Object ref = packageId_; 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(); packageId_ = s; return s; } } /** * string package_id = 1; * @return The bytes for packageId. */ @java.lang.Override public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABEL_FIELD_NUMBER = 2; private volatile java.lang.Object label_; /** * string label = 2; * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; 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(); label_ = s; return s; } } /** * string label = 2; * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REFERENCES_FIELD_NUMBER = 3; private static final class ReferencesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_ReferencesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References> references_; private com.google.protobuf.MapField internalGetReferences() { if (references_ == null) { return com.google.protobuf.MapField.emptyMapField( ReferencesDefaultEntryHolder.defaultEntry); } return references_; } public int getReferencesCount() { return internalGetReferences().getMap().size(); } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public boolean containsReferences( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetReferences().getMap().containsKey(key); } /** * Use {@link #getReferencesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getReferences() { return getReferencesMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public java.util.Map getReferencesMap() { return internalGetReferences().getMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getReferencesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getReferencesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetReferences(), ReferencesDefaultEntryHolder.defaultEntry, 3); 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(packageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); } for (java.util.Map.Entry entry : internalGetReferences().getMap().entrySet()) { com.google.protobuf.MapEntry references__ = ReferencesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, references__); } 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode) obj; if (!getPackageId() .equals(other.getPackageId())) return false; if (!getLabel() .equals(other.getLabel())) return false; if (!internalGetReferences().equals( other.internalGetReferences())) 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) + PACKAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getPackageId().hashCode(); hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); if (!internalGetReferences().getMap().isEmpty()) { hash = (37 * hash) + REFERENCES_FIELD_NUMBER; hash = (53 * hash) + internalGetReferences().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult.InstalledChaincode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodesResult.InstalledChaincode) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetReferences(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableReferences(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packageId_ = ""; label_ = ""; internalGetMutableReferences().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode(this); int from_bitField0_ = bitField0_; result.packageId_ = packageId_; result.label_ = label_; result.references_ = internalGetReferences(); result.references_.makeImmutable(); 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.getDefaultInstance()) return this; if (!other.getPackageId().isEmpty()) { packageId_ = other.packageId_; onChanged(); } if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); } internalGetMutableReferences().mergeFrom( other.internalGetReferences()); 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: { packageId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { label_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { com.google.protobuf.MapEntry references__ = input.readMessage( ReferencesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableReferences().getMutableMap().put( references__.getKey(), references__.getValue()); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object packageId_ = ""; /** * string package_id = 1; * @return The packageId. */ public java.lang.String getPackageId() { java.lang.Object ref = packageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string package_id = 1; * @return The bytes for packageId. */ public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string package_id = 1; * @param value The packageId to set. * @return This builder for chaining. */ public Builder setPackageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageId_ = value; onChanged(); return this; } /** * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); onChanged(); return this; } /** * string package_id = 1; * @param value The bytes for packageId to set. * @return This builder for chaining. */ public Builder setPackageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageId_ = value; onChanged(); return this; } private java.lang.Object label_ = ""; /** * string label = 2; * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * string label = 2; * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string label = 2; * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * string label = 2; * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * string label = 2; * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References> references_; private com.google.protobuf.MapField internalGetReferences() { if (references_ == null) { return com.google.protobuf.MapField.emptyMapField( ReferencesDefaultEntryHolder.defaultEntry); } return references_; } private com.google.protobuf.MapField internalGetMutableReferences() { onChanged();; if (references_ == null) { references_ = com.google.protobuf.MapField.newMapField( ReferencesDefaultEntryHolder.defaultEntry); } if (!references_.isMutable()) { references_ = references_.copy(); } return references_; } public int getReferencesCount() { return internalGetReferences().getMap().size(); } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public boolean containsReferences( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetReferences().getMap().containsKey(key); } /** * Use {@link #getReferencesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getReferences() { return getReferencesMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public java.util.Map getReferencesMap() { return internalGetReferences().getMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getReferencesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getReferencesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetReferences().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearReferences() { internalGetMutableReferences().getMutableMap() .clear(); return this; } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ public Builder removeReferences( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableReferences().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableReferences() { return internalGetMutableReferences().getMutableMap(); } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ public Builder putReferences( java.lang.String key, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableReferences().getMutableMap() .put(key, value); return this; } /** * map<string, .lifecycle.QueryInstalledChaincodesResult.References> references = 3; */ public Builder putAllReferences( java.util.Map values) { internalGetMutableReferences().getMutableMap() .putAll(values); 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:lifecycle.QueryInstalledChaincodesResult.InstalledChaincode) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodesResult.InstalledChaincode) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstalledChaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReferencesOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodesResult.References) com.google.protobuf.MessageOrBuilder { /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ java.util.List getChaincodesList(); /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode getChaincodes(int index); /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ int getChaincodesCount(); /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ java.util.List getChaincodesOrBuilderList(); /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ChaincodeOrBuilder getChaincodesOrBuilder( int index); } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult.References} */ public static final class References extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodesResult.References) ReferencesOrBuilder { private static final long serialVersionUID = 0L; // Use References.newBuilder() to construct. private References(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private References() { chaincodes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new References(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_References_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_References_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.Builder.class); } public static final int CHAINCODES_FIELD_NUMBER = 1; private java.util.List chaincodes_; /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ @java.lang.Override public java.util.List getChaincodesList() { return chaincodes_; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ @java.lang.Override public java.util.List getChaincodesOrBuilderList() { return chaincodes_; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ @java.lang.Override public int getChaincodesCount() { return chaincodes_.size(); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode getChaincodes(int index) { return chaincodes_.get(index); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ChaincodeOrBuilder getChaincodesOrBuilder( int index) { return chaincodes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < chaincodes_.size(); i++) { output.writeMessage(1, chaincodes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < chaincodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, chaincodes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References) obj; if (!getChaincodesList() .equals(other.getChaincodesList())) 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 (getChaincodesCount() > 0) { hash = (37 * hash) + CHAINCODES_FIELD_NUMBER; hash = (53 * hash) + getChaincodesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult.References} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodesResult.References) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ReferencesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_References_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_References_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); } else { chaincodes_ = null; chaincodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_References_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References(this); int from_bitField0_ = bitField0_; if (chaincodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodes_ = chaincodes_; } else { result.chaincodes_ = chaincodesBuilder_.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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References.getDefaultInstance()) return this; if (chaincodesBuilder_ == null) { if (!other.chaincodes_.isEmpty()) { if (chaincodes_.isEmpty()) { chaincodes_ = other.chaincodes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChaincodesIsMutable(); chaincodes_.addAll(other.chaincodes_); } onChanged(); } } else { if (!other.chaincodes_.isEmpty()) { if (chaincodesBuilder_.isEmpty()) { chaincodesBuilder_.dispose(); chaincodesBuilder_ = null; chaincodes_ = other.chaincodes_; bitField0_ = (bitField0_ & ~0x00000001); chaincodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChaincodesFieldBuilder() : null; } else { chaincodesBuilder_.addAllMessages(other.chaincodes_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode m = input.readMessage( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.parser(), extensionRegistry); if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(m); } else { chaincodesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List chaincodes_ = java.util.Collections.emptyList(); private void ensureChaincodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { chaincodes_ = new java.util.ArrayList(chaincodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ChaincodeOrBuilder> chaincodesBuilder_; /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public java.util.List getChaincodesList() { if (chaincodesBuilder_ == null) { return java.util.Collections.unmodifiableList(chaincodes_); } else { return chaincodesBuilder_.getMessageList(); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public int getChaincodesCount() { if (chaincodesBuilder_ == null) { return chaincodes_.size(); } else { return chaincodesBuilder_.getCount(); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode getChaincodes(int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessage(index); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.set(index, value); onChanged(); } else { chaincodesBuilder_.setMessage(index, value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.set(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder addChaincodes(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(value); onChanged(); } else { chaincodesBuilder_.addMessage(value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(index, value); onChanged(); } else { chaincodesBuilder_.addMessage(index, value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder addChaincodes( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder addAllChaincodes( java.lang.Iterable values) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chaincodes_); onChanged(); } else { chaincodesBuilder_.addAllMessages(values); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder clearChaincodes() { if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { chaincodesBuilder_.clear(); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public Builder removeChaincodes(int index) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.remove(index); onChanged(); } else { chaincodesBuilder_.remove(index); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder getChaincodesBuilder( int index) { return getChaincodesFieldBuilder().getBuilder(index); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ChaincodeOrBuilder getChaincodesOrBuilder( int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessageOrBuilder(index); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public java.util.List getChaincodesOrBuilderList() { if (chaincodesBuilder_ != null) { return chaincodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chaincodes_); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder addChaincodesBuilder() { return getChaincodesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.getDefaultInstance()); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder addChaincodesBuilder( int index) { return getChaincodesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.getDefaultInstance()); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.Chaincode chaincodes = 1; */ public java.util.List getChaincodesBuilderList() { return getChaincodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ChaincodeOrBuilder> getChaincodesFieldBuilder() { if (chaincodesBuilder_ == null) { chaincodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ChaincodeOrBuilder>( chaincodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); chaincodes_ = null; } return chaincodesBuilder_; } @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:lifecycle.QueryInstalledChaincodesResult.References) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodesResult.References) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public References 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.References getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryInstalledChaincodesResult.Chaincode) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string version = 2; * @return The version. */ java.lang.String getVersion(); /** * string version = 2; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult.Chaincode} */ public static final class Chaincode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryInstalledChaincodesResult.Chaincode) ChaincodeOrBuilder { private static final long serialVersionUID = 0L; // Use Chaincode.newBuilder() to construct. private Chaincode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Chaincode() { name_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Chaincode(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * 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; } } /** * 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 VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** * 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; } } /** * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode) obj; if (!getName() .equals(other.getName())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult.Chaincode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodesResult.Chaincode) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.ChaincodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; version_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode(this); result.name_ = name_; 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } 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: { name_ = input.readStringRequireUtf8(); 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 java.lang.Object name_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * 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 java.lang.Object version_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string version = 2; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * 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:lifecycle.QueryInstalledChaincodesResult.Chaincode) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodesResult.Chaincode) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Chaincode 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Chaincode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int INSTALLED_CHAINCODES_FIELD_NUMBER = 1; private java.util.List installedChaincodes_; /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ @java.lang.Override public java.util.List getInstalledChaincodesList() { return installedChaincodes_; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ @java.lang.Override public java.util.List getInstalledChaincodesOrBuilderList() { return installedChaincodes_; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ @java.lang.Override public int getInstalledChaincodesCount() { return installedChaincodes_.size(); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode getInstalledChaincodes(int index) { return installedChaincodes_.get(index); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincodeOrBuilder getInstalledChaincodesOrBuilder( int index) { return installedChaincodes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < installedChaincodes_.size(); i++) { output.writeMessage(1, installedChaincodes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < installedChaincodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, installedChaincodes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult) obj; if (!getInstalledChaincodesList() .equals(other.getInstalledChaincodesList())) 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 (getInstalledChaincodesCount() > 0) { hash = (37 * hash) + INSTALLED_CHAINCODES_FIELD_NUMBER; hash = (53 * hash) + getInstalledChaincodesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult 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; } /** *
     * QueryInstalledChaincodesResult is the message returned by
     * '_lifecycle.QueryInstalledChaincodes'.  It returns a list of installed
     * chaincodes, including a map of channel name to chaincode name and version
     * pairs of chaincode definitions that reference this chaincode package.
     * 
* * Protobuf type {@code lifecycle.QueryInstalledChaincodesResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryInstalledChaincodesResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (installedChaincodesBuilder_ == null) { installedChaincodes_ = java.util.Collections.emptyList(); } else { installedChaincodes_ = null; installedChaincodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult(this); int from_bitField0_ = bitField0_; if (installedChaincodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { installedChaincodes_ = java.util.Collections.unmodifiableList(installedChaincodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.installedChaincodes_ = installedChaincodes_; } else { result.installedChaincodes_ = installedChaincodesBuilder_.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.lifecycle.Lifecycle.QueryInstalledChaincodesResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.getDefaultInstance()) return this; if (installedChaincodesBuilder_ == null) { if (!other.installedChaincodes_.isEmpty()) { if (installedChaincodes_.isEmpty()) { installedChaincodes_ = other.installedChaincodes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInstalledChaincodesIsMutable(); installedChaincodes_.addAll(other.installedChaincodes_); } onChanged(); } } else { if (!other.installedChaincodes_.isEmpty()) { if (installedChaincodesBuilder_.isEmpty()) { installedChaincodesBuilder_.dispose(); installedChaincodesBuilder_ = null; installedChaincodes_ = other.installedChaincodes_; bitField0_ = (bitField0_ & ~0x00000001); installedChaincodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstalledChaincodesFieldBuilder() : null; } else { installedChaincodesBuilder_.addAllMessages(other.installedChaincodes_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode m = input.readMessage( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.parser(), extensionRegistry); if (installedChaincodesBuilder_ == null) { ensureInstalledChaincodesIsMutable(); installedChaincodes_.add(m); } else { installedChaincodesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List installedChaincodes_ = java.util.Collections.emptyList(); private void ensureInstalledChaincodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { installedChaincodes_ = new java.util.ArrayList(installedChaincodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincodeOrBuilder> installedChaincodesBuilder_; /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public java.util.List getInstalledChaincodesList() { if (installedChaincodesBuilder_ == null) { return java.util.Collections.unmodifiableList(installedChaincodes_); } else { return installedChaincodesBuilder_.getMessageList(); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public int getInstalledChaincodesCount() { if (installedChaincodesBuilder_ == null) { return installedChaincodes_.size(); } else { return installedChaincodesBuilder_.getCount(); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode getInstalledChaincodes(int index) { if (installedChaincodesBuilder_ == null) { return installedChaincodes_.get(index); } else { return installedChaincodesBuilder_.getMessage(index); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder setInstalledChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode value) { if (installedChaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstalledChaincodesIsMutable(); installedChaincodes_.set(index, value); onChanged(); } else { installedChaincodesBuilder_.setMessage(index, value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder setInstalledChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder builderForValue) { if (installedChaincodesBuilder_ == null) { ensureInstalledChaincodesIsMutable(); installedChaincodes_.set(index, builderForValue.build()); onChanged(); } else { installedChaincodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder addInstalledChaincodes(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode value) { if (installedChaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstalledChaincodesIsMutable(); installedChaincodes_.add(value); onChanged(); } else { installedChaincodesBuilder_.addMessage(value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder addInstalledChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode value) { if (installedChaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstalledChaincodesIsMutable(); installedChaincodes_.add(index, value); onChanged(); } else { installedChaincodesBuilder_.addMessage(index, value); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder addInstalledChaincodes( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder builderForValue) { if (installedChaincodesBuilder_ == null) { ensureInstalledChaincodesIsMutable(); installedChaincodes_.add(builderForValue.build()); onChanged(); } else { installedChaincodesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder addInstalledChaincodes( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder builderForValue) { if (installedChaincodesBuilder_ == null) { ensureInstalledChaincodesIsMutable(); installedChaincodes_.add(index, builderForValue.build()); onChanged(); } else { installedChaincodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder addAllInstalledChaincodes( java.lang.Iterable values) { if (installedChaincodesBuilder_ == null) { ensureInstalledChaincodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, installedChaincodes_); onChanged(); } else { installedChaincodesBuilder_.addAllMessages(values); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder clearInstalledChaincodes() { if (installedChaincodesBuilder_ == null) { installedChaincodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { installedChaincodesBuilder_.clear(); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public Builder removeInstalledChaincodes(int index) { if (installedChaincodesBuilder_ == null) { ensureInstalledChaincodesIsMutable(); installedChaincodes_.remove(index); onChanged(); } else { installedChaincodesBuilder_.remove(index); } return this; } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder getInstalledChaincodesBuilder( int index) { return getInstalledChaincodesFieldBuilder().getBuilder(index); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincodeOrBuilder getInstalledChaincodesOrBuilder( int index) { if (installedChaincodesBuilder_ == null) { return installedChaincodes_.get(index); } else { return installedChaincodesBuilder_.getMessageOrBuilder(index); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public java.util.List getInstalledChaincodesOrBuilderList() { if (installedChaincodesBuilder_ != null) { return installedChaincodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(installedChaincodes_); } } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder addInstalledChaincodesBuilder() { return getInstalledChaincodesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.getDefaultInstance()); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder addInstalledChaincodesBuilder( int index) { return getInstalledChaincodesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.getDefaultInstance()); } /** * repeated .lifecycle.QueryInstalledChaincodesResult.InstalledChaincode installed_chaincodes = 1; */ public java.util.List getInstalledChaincodesBuilderList() { return getInstalledChaincodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincodeOrBuilder> getInstalledChaincodesFieldBuilder() { if (installedChaincodesBuilder_ == null) { installedChaincodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincode.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult.InstalledChaincodeOrBuilder>( installedChaincodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); installedChaincodes_ = null; } return installedChaincodesBuilder_; } @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:lifecycle.QueryInstalledChaincodesResult) } // @@protoc_insertion_point(class_scope:lifecycle.QueryInstalledChaincodesResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryInstalledChaincodesResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryInstalledChaincodesResult 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.lifecycle.Lifecycle.QueryInstalledChaincodesResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApproveChaincodeDefinitionForMyOrgArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.ApproveChaincodeDefinitionForMyOrgArgs) com.google.protobuf.MessageOrBuilder { /** * int64 sequence = 1; * @return The sequence. */ long getSequence(); /** * string name = 2; * @return The name. */ java.lang.String getName(); /** * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string version = 3; * @return The version. */ java.lang.String getVersion(); /** * string version = 3; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ java.lang.String getEndorsementPlugin(); /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ com.google.protobuf.ByteString getEndorsementPluginBytes(); /** * string validation_plugin = 5; * @return The validationPlugin. */ java.lang.String getValidationPlugin(); /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ com.google.protobuf.ByteString getValidationPluginBytes(); /** * bytes validation_parameter = 6; * @return The validationParameter. */ com.google.protobuf.ByteString getValidationParameter(); /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ boolean hasCollections(); /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections(); /** * .protos.CollectionConfigPackage collections = 7; */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder(); /** * bool init_required = 8; * @return The initRequired. */ boolean getInitRequired(); /** * .lifecycle.ChaincodeSource source = 9; * @return Whether the source field is set. */ boolean hasSource(); /** * .lifecycle.ChaincodeSource source = 9; * @return The source. */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource getSource(); /** * .lifecycle.ChaincodeSource source = 9; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder(); } /** *
   * ApproveChaincodeDefinitionForMyOrgArgs is the message used as arguments to
   * `_lifecycle.ApproveChaincodeDefinitionForMyOrg`.
   * 
* * Protobuf type {@code lifecycle.ApproveChaincodeDefinitionForMyOrgArgs} */ public static final class ApproveChaincodeDefinitionForMyOrgArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.ApproveChaincodeDefinitionForMyOrgArgs) ApproveChaincodeDefinitionForMyOrgArgsOrBuilder { private static final long serialVersionUID = 0L; // Use ApproveChaincodeDefinitionForMyOrgArgs.newBuilder() to construct. private ApproveChaincodeDefinitionForMyOrgArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApproveChaincodeDefinitionForMyOrgArgs() { name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApproveChaincodeDefinitionForMyOrgArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs.Builder.class); } public static final int SEQUENCE_FIELD_NUMBER = 1; private long sequence_; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * string name = 2; * @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; } } /** * string name = 2; * @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 VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object version_; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } public static final int ENDORSEMENT_PLUGIN_FIELD_NUMBER = 4; private volatile java.lang.Object endorsementPlugin_; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ @java.lang.Override public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; 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(); endorsementPlugin_ = s; return s; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PLUGIN_FIELD_NUMBER = 5; private volatile java.lang.Object validationPlugin_; /** * string validation_plugin = 5; * @return The validationPlugin. */ @java.lang.Override public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; 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(); validationPlugin_ = s; return s; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PARAMETER_FIELD_NUMBER = 6; private com.google.protobuf.ByteString validationParameter_; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } public static final int COLLECTIONS_FIELD_NUMBER = 7; private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ @java.lang.Override public boolean hasCollections() { return collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } /** * .protos.CollectionConfigPackage collections = 7; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { return getCollections(); } public static final int INIT_REQUIRED_FIELD_NUMBER = 8; private boolean initRequired_; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } public static final int SOURCE_FIELD_NUMBER = 9; private org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource source_; /** * .lifecycle.ChaincodeSource source = 9; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return source_ != null; } /** * .lifecycle.ChaincodeSource source = 9; * @return The source. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource getSource() { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.getDefaultInstance() : source_; } /** * .lifecycle.ChaincodeSource source = 9; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder() { return getSource(); } 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 (sequence_ != 0L) { output.writeInt64(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationPlugin_); } if (!validationParameter_.isEmpty()) { output.writeBytes(6, validationParameter_); } if (collections_ != null) { output.writeMessage(7, getCollections()); } if (initRequired_ != false) { output.writeBool(8, initRequired_); } if (source_ != null) { output.writeMessage(9, getSource()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationPlugin_); } if (!validationParameter_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, validationParameter_); } if (collections_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCollections()); } if (initRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, initRequired_); } if (source_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getSource()); } 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs) obj; if (getSequence() != other.getSequence()) return false; if (!getName() .equals(other.getName())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEndorsementPlugin() .equals(other.getEndorsementPlugin())) return false; if (!getValidationPlugin() .equals(other.getValidationPlugin())) return false; if (!getValidationParameter() .equals(other.getValidationParameter())) return false; if (hasCollections() != other.hasCollections()) return false; if (hasCollections()) { if (!getCollections() .equals(other.getCollections())) return false; } if (getInitRequired() != other.getInitRequired()) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) 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) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + ENDORSEMENT_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getValidationPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getValidationParameter().hashCode(); if (hasCollections()) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollections().hashCode(); } hash = (37 * hash) + INIT_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitRequired()); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs 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; } /** *
     * ApproveChaincodeDefinitionForMyOrgArgs is the message used as arguments to
     * `_lifecycle.ApproveChaincodeDefinitionForMyOrg`.
     * 
* * Protobuf type {@code lifecycle.ApproveChaincodeDefinitionForMyOrgArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.ApproveChaincodeDefinitionForMyOrgArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); sequence_ = 0L; name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; if (collectionsBuilder_ == null) { collections_ = null; } else { collections_ = null; collectionsBuilder_ = null; } initRequired_ = false; if (sourceBuilder_ == null) { source_ = null; } else { source_ = null; sourceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs(this); result.sequence_ = sequence_; result.name_ = name_; result.version_ = version_; result.endorsementPlugin_ = endorsementPlugin_; result.validationPlugin_ = validationPlugin_; result.validationParameter_ = validationParameter_; if (collectionsBuilder_ == null) { result.collections_ = collections_; } else { result.collections_ = collectionsBuilder_.build(); } result.initRequired_ = initRequired_; if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs.getDefaultInstance()) return this; if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getEndorsementPlugin().isEmpty()) { endorsementPlugin_ = other.endorsementPlugin_; onChanged(); } if (!other.getValidationPlugin().isEmpty()) { validationPlugin_ = other.validationPlugin_; onChanged(); } if (other.getValidationParameter() != com.google.protobuf.ByteString.EMPTY) { setValidationParameter(other.getValidationParameter()); } if (other.hasCollections()) { mergeCollections(other.getCollections()); } if (other.getInitRequired() != false) { setInitRequired(other.getInitRequired()); } if (other.hasSource()) { mergeSource(other.getSource()); } 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 8: { sequence_ = input.readInt64(); break; } // case 8 case 18: { name_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { version_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { endorsementPlugin_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { validationPlugin_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { validationParameter_ = input.readBytes(); break; } // case 50 case 58: { input.readMessage( getCollectionsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 64: { initRequired_ = input.readBool(); break; } // case 64 case 74: { input.readMessage( getSourceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 74 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 long sequence_ ; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * int64 sequence = 1; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; onChanged(); return this; } /** * int64 sequence = 1; * @return This builder for chaining. */ public Builder clearSequence() { sequence_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2; * @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; } } /** * string name = 2; * @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; } } /** * string name = 2; * @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; } /** * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2; * @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 java.lang.Object version_ = ""; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } /** * string version = 3; * @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; } /** * string version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 3; * @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; } private java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endorsement_plugin = 4; * @param value The endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPlugin_ = value; onChanged(); return this; } /** * string endorsement_plugin = 4; * @return This builder for chaining. */ public Builder clearEndorsementPlugin() { endorsementPlugin_ = getDefaultInstance().getEndorsementPlugin(); onChanged(); return this; } /** * string endorsement_plugin = 4; * @param value The bytes for endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPlugin_ = value; onChanged(); return this; } private java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 5; * @return The validationPlugin. */ public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validation_plugin = 5; * @param value The validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validationPlugin_ = value; onChanged(); return this; } /** * string validation_plugin = 5; * @return This builder for chaining. */ public Builder clearValidationPlugin() { validationPlugin_ = getDefaultInstance().getValidationPlugin(); onChanged(); return this; } /** * string validation_plugin = 5; * @param value The bytes for validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validationPlugin_ = value; onChanged(); return this; } private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } /** * bytes validation_parameter = 6; * @param value The validationParameter to set. * @return This builder for chaining. */ public Builder setValidationParameter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validationParameter_ = value; onChanged(); return this; } /** * bytes validation_parameter = 6; * @return This builder for chaining. */ public Builder clearValidationParameter() { validationParameter_ = getDefaultInstance().getValidationParameter(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> collectionsBuilder_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ public boolean hasCollections() { return collectionsBuilder_ != null || collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { if (collectionsBuilder_ == null) { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } else { return collectionsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collections_ = value; onChanged(); } else { collectionsBuilder_.setMessage(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder builderForValue) { if (collectionsBuilder_ == null) { collections_ = builderForValue.build(); onChanged(); } else { collectionsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder mergeCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (collections_ != null) { collections_ = org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.newBuilder(collections_).mergeFrom(value).buildPartial(); } else { collections_ = value; } onChanged(); } else { collectionsBuilder_.mergeFrom(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder clearCollections() { if (collectionsBuilder_ == null) { collections_ = null; onChanged(); } else { collections_ = null; collectionsBuilder_ = null; } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder getCollectionsBuilder() { onChanged(); return getCollectionsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilder(); } else { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } } /** * .protos.CollectionConfigPackage collections = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder>( getCollections(), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private boolean initRequired_ ; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } /** * bool init_required = 8; * @param value The initRequired to set. * @return This builder for chaining. */ public Builder setInitRequired(boolean value) { initRequired_ = value; onChanged(); return this; } /** * bool init_required = 8; * @return This builder for chaining. */ public Builder clearInitRequired() { initRequired_ = false; onChanged(); return this; } private org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource source_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSourceOrBuilder> sourceBuilder_; /** * .lifecycle.ChaincodeSource source = 9; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** * .lifecycle.ChaincodeSource source = 9; * @return The source. */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * .lifecycle.ChaincodeSource source = 9; */ public Builder setSource(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } return this; } /** * .lifecycle.ChaincodeSource source = 9; */ public Builder setSource( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .lifecycle.ChaincodeSource source = 9; */ public Builder mergeSource(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } return this; } /** * .lifecycle.ChaincodeSource source = 9; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { source_ = null; sourceBuilder_ = null; } return this; } /** * .lifecycle.ChaincodeSource source = 9; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Builder getSourceBuilder() { onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * .lifecycle.ChaincodeSource source = 9; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.getDefaultInstance() : source_; } } /** * .lifecycle.ChaincodeSource source = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } @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:lifecycle.ApproveChaincodeDefinitionForMyOrgArgs) } // @@protoc_insertion_point(class_scope:lifecycle.ApproveChaincodeDefinitionForMyOrgArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApproveChaincodeDefinitionForMyOrgArgs 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.ChaincodeSource) com.google.protobuf.MessageOrBuilder { /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; * @return Whether the unavailable field is set. */ boolean hasUnavailable(); /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; * @return The unavailable. */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable getUnavailable(); /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.UnavailableOrBuilder getUnavailableOrBuilder(); /** * .lifecycle.ChaincodeSource.Local local_package = 2; * @return Whether the localPackage field is set. */ boolean hasLocalPackage(); /** * .lifecycle.ChaincodeSource.Local local_package = 2; * @return The localPackage. */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local getLocalPackage(); /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.LocalOrBuilder getLocalPackageOrBuilder(); public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.TypeCase getTypeCase(); } /** * Protobuf type {@code lifecycle.ChaincodeSource} */ public static final class ChaincodeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.ChaincodeSource) ChaincodeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ChaincodeSource.newBuilder() to construct. private ChaincodeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeSource() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeSource(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Builder.class); } public interface UnavailableOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.ChaincodeSource.Unavailable) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code lifecycle.ChaincodeSource.Unavailable} */ public static final class Unavailable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.ChaincodeSource.Unavailable) UnavailableOrBuilder { private static final long serialVersionUID = 0L; // Use Unavailable.newBuilder() to construct. private Unavailable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Unavailable() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Unavailable(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Unavailable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Unavailable_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.ChaincodeSource.Unavailable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.ChaincodeSource.Unavailable) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.UnavailableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Unavailable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Unavailable_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Unavailable_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable(this); 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance()) return this; 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; 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; } @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:lifecycle.ChaincodeSource.Unavailable) } // @@protoc_insertion_point(class_scope:lifecycle.ChaincodeSource.Unavailable) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Unavailable 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.lifecycle.Lifecycle.ChaincodeSource.Unavailable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.ChaincodeSource.Local) com.google.protobuf.MessageOrBuilder { /** * string package_id = 1; * @return The packageId. */ java.lang.String getPackageId(); /** * string package_id = 1; * @return The bytes for packageId. */ com.google.protobuf.ByteString getPackageIdBytes(); } /** * Protobuf type {@code lifecycle.ChaincodeSource.Local} */ public static final class Local extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.ChaincodeSource.Local) LocalOrBuilder { private static final long serialVersionUID = 0L; // Use Local.newBuilder() to construct. private Local(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Local() { packageId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Local(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Local_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Local_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.Builder.class); } public static final int PACKAGE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object packageId_; /** * string package_id = 1; * @return The packageId. */ @java.lang.Override public java.lang.String getPackageId() { java.lang.Object ref = packageId_; 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(); packageId_ = s; return s; } } /** * string package_id = 1; * @return The bytes for packageId. */ @java.lang.Override public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = 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(packageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_); } 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(packageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_); } 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.lifecycle.Lifecycle.ChaincodeSource.Local)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) obj; if (!getPackageId() .equals(other.getPackageId())) 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) + PACKAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getPackageId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local 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.lifecycle.Lifecycle.ChaincodeSource.Local parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local 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.lifecycle.Lifecycle.ChaincodeSource.Local parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local 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.lifecycle.Lifecycle.ChaincodeSource.Local parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local 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.lifecycle.Lifecycle.ChaincodeSource.Local parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local 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.lifecycle.Lifecycle.ChaincodeSource.Local 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.lifecycle.Lifecycle.ChaincodeSource.Local 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.lifecycle.Lifecycle.ChaincodeSource.Local prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.ChaincodeSource.Local} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.ChaincodeSource.Local) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.LocalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Local_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Local_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packageId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_Local_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local(this); result.packageId_ = packageId_; 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.lifecycle.Lifecycle.ChaincodeSource.Local) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance()) return this; if (!other.getPackageId().isEmpty()) { packageId_ = other.packageId_; 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: { packageId_ = 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 packageId_ = ""; /** * string package_id = 1; * @return The packageId. */ public java.lang.String getPackageId() { java.lang.Object ref = packageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string package_id = 1; * @return The bytes for packageId. */ public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string package_id = 1; * @param value The packageId to set. * @return This builder for chaining. */ public Builder setPackageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageId_ = value; onChanged(); return this; } /** * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); onChanged(); return this; } /** * string package_id = 1; * @param value The bytes for packageId to set. * @return This builder for chaining. */ public Builder setPackageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageId_ = 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:lifecycle.ChaincodeSource.Local) } // @@protoc_insertion_point(class_scope:lifecycle.ChaincodeSource.Local) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Local 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.lifecycle.Lifecycle.ChaincodeSource.Local getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNAVAILABLE(1), LOCAL_PACKAGE(2), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return UNAVAILABLE; case 2: return LOCAL_PACKAGE; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int UNAVAILABLE_FIELD_NUMBER = 1; /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; * @return Whether the unavailable field is set. */ @java.lang.Override public boolean hasUnavailable() { return typeCase_ == 1; } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; * @return The unavailable. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable getUnavailable() { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance(); } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.UnavailableOrBuilder getUnavailableOrBuilder() { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance(); } public static final int LOCAL_PACKAGE_FIELD_NUMBER = 2; /** * .lifecycle.ChaincodeSource.Local local_package = 2; * @return Whether the localPackage field is set. */ @java.lang.Override public boolean hasLocalPackage() { return typeCase_ == 2; } /** * .lifecycle.ChaincodeSource.Local local_package = 2; * @return The localPackage. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local getLocalPackage() { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance(); } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.LocalOrBuilder getLocalPackageOrBuilder() { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance(); } 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 (typeCase_ == 1) { output.writeMessage(1, (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_); } if (typeCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_); } 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.lifecycle.Lifecycle.ChaincodeSource)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getUnavailable() .equals(other.getUnavailable())) return false; break; case 2: if (!getLocalPackage() .equals(other.getLocalPackage())) return false; break; case 0: default: } 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(); switch (typeCase_) { case 1: hash = (37 * hash) + UNAVAILABLE_FIELD_NUMBER; hash = (53 * hash) + getUnavailable().hashCode(); break; case 2: hash = (37 * hash) + LOCAL_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getLocalPackage().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.ChaincodeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.ChaincodeSource) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (unavailableBuilder_ != null) { unavailableBuilder_.clear(); } if (localPackageBuilder_ != null) { localPackageBuilder_.clear(); } typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ChaincodeSource_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource(this); if (typeCase_ == 1) { if (unavailableBuilder_ == null) { result.type_ = type_; } else { result.type_ = unavailableBuilder_.build(); } } if (typeCase_ == 2) { if (localPackageBuilder_ == null) { result.type_ = type_; } else { result.type_ = localPackageBuilder_.build(); } } result.typeCase_ = typeCase_; 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.lifecycle.Lifecycle.ChaincodeSource) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.getDefaultInstance()) return this; switch (other.getTypeCase()) { case UNAVAILABLE: { mergeUnavailable(other.getUnavailable()); break; } case LOCAL_PACKAGE: { mergeLocalPackage(other.getLocalPackage()); break; } case TYPE_NOT_SET: { break; } } 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( getUnavailableFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getLocalPackageFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 2; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.UnavailableOrBuilder> unavailableBuilder_; /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; * @return Whether the unavailable field is set. */ @java.lang.Override public boolean hasUnavailable() { return typeCase_ == 1; } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; * @return The unavailable. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable getUnavailable() { if (unavailableBuilder_ == null) { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance(); } else { if (typeCase_ == 1) { return unavailableBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance(); } } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ public Builder setUnavailable(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable value) { if (unavailableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { unavailableBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ public Builder setUnavailable( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.Builder builderForValue) { if (unavailableBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { unavailableBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ public Builder mergeUnavailable(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable value) { if (unavailableBuilder_ == null) { if (typeCase_ == 1 && type_ != org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance()) { type_ = org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.newBuilder((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { unavailableBuilder_.mergeFrom(value); } else { unavailableBuilder_.setMessage(value); } } typeCase_ = 1; return this; } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ public Builder clearUnavailable() { if (unavailableBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } unavailableBuilder_.clear(); } return this; } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.Builder getUnavailableBuilder() { return getUnavailableFieldBuilder().getBuilder(); } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.UnavailableOrBuilder getUnavailableOrBuilder() { if ((typeCase_ == 1) && (unavailableBuilder_ != null)) { return unavailableBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance(); } } /** * .lifecycle.ChaincodeSource.Unavailable unavailable = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.UnavailableOrBuilder> getUnavailableFieldBuilder() { if (unavailableBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.getDefaultInstance(); } unavailableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.UnavailableOrBuilder>( (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Unavailable) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged();; return unavailableBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.LocalOrBuilder> localPackageBuilder_; /** * .lifecycle.ChaincodeSource.Local local_package = 2; * @return Whether the localPackage field is set. */ @java.lang.Override public boolean hasLocalPackage() { return typeCase_ == 2; } /** * .lifecycle.ChaincodeSource.Local local_package = 2; * @return The localPackage. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local getLocalPackage() { if (localPackageBuilder_ == null) { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance(); } else { if (typeCase_ == 2) { return localPackageBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance(); } } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ public Builder setLocalPackage(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local value) { if (localPackageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { localPackageBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ public Builder setLocalPackage( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.Builder builderForValue) { if (localPackageBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { localPackageBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ public Builder mergeLocalPackage(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local value) { if (localPackageBuilder_ == null) { if (typeCase_ == 2 && type_ != org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance()) { type_ = org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.newBuilder((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { localPackageBuilder_.mergeFrom(value); } else { localPackageBuilder_.setMessage(value); } } typeCase_ = 2; return this; } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ public Builder clearLocalPackage() { if (localPackageBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } localPackageBuilder_.clear(); } return this; } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.Builder getLocalPackageBuilder() { return getLocalPackageFieldBuilder().getBuilder(); } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.LocalOrBuilder getLocalPackageOrBuilder() { if ((typeCase_ == 2) && (localPackageBuilder_ != null)) { return localPackageBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_; } return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance(); } } /** * .lifecycle.ChaincodeSource.Local local_package = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.LocalOrBuilder> getLocalPackageFieldBuilder() { if (localPackageBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.getDefaultInstance(); } localPackageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.LocalOrBuilder>( (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource.Local) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged();; return localPackageBuilder_; } @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:lifecycle.ChaincodeSource) } // @@protoc_insertion_point(class_scope:lifecycle.ChaincodeSource) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ChaincodeSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeSource 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.lifecycle.Lifecycle.ChaincodeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApproveChaincodeDefinitionForMyOrgResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.ApproveChaincodeDefinitionForMyOrgResult) com.google.protobuf.MessageOrBuilder { } /** *
   * ApproveChaincodeDefinitionForMyOrgResult is the message returned by
   * `_lifecycle.ApproveChaincodeDefinitionForMyOrg`. Currently it returns
   * nothing, but may be extended in the future.
   * 
* * Protobuf type {@code lifecycle.ApproveChaincodeDefinitionForMyOrgResult} */ public static final class ApproveChaincodeDefinitionForMyOrgResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.ApproveChaincodeDefinitionForMyOrgResult) ApproveChaincodeDefinitionForMyOrgResultOrBuilder { private static final long serialVersionUID = 0L; // Use ApproveChaincodeDefinitionForMyOrgResult.newBuilder() to construct. private ApproveChaincodeDefinitionForMyOrgResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApproveChaincodeDefinitionForMyOrgResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApproveChaincodeDefinitionForMyOrgResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult 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; } /** *
     * ApproveChaincodeDefinitionForMyOrgResult is the message returned by
     * `_lifecycle.ApproveChaincodeDefinitionForMyOrg`. Currently it returns
     * nothing, but may be extended in the future.
     * 
* * Protobuf type {@code lifecycle.ApproveChaincodeDefinitionForMyOrgResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.ApproveChaincodeDefinitionForMyOrgResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult(this); 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult.getDefaultInstance()) return this; 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; 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; } @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:lifecycle.ApproveChaincodeDefinitionForMyOrgResult) } // @@protoc_insertion_point(class_scope:lifecycle.ApproveChaincodeDefinitionForMyOrgResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApproveChaincodeDefinitionForMyOrgResult 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.lifecycle.Lifecycle.ApproveChaincodeDefinitionForMyOrgResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitChaincodeDefinitionArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.CommitChaincodeDefinitionArgs) com.google.protobuf.MessageOrBuilder { /** * int64 sequence = 1; * @return The sequence. */ long getSequence(); /** * string name = 2; * @return The name. */ java.lang.String getName(); /** * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string version = 3; * @return The version. */ java.lang.String getVersion(); /** * string version = 3; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ java.lang.String getEndorsementPlugin(); /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ com.google.protobuf.ByteString getEndorsementPluginBytes(); /** * string validation_plugin = 5; * @return The validationPlugin. */ java.lang.String getValidationPlugin(); /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ com.google.protobuf.ByteString getValidationPluginBytes(); /** * bytes validation_parameter = 6; * @return The validationParameter. */ com.google.protobuf.ByteString getValidationParameter(); /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ boolean hasCollections(); /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections(); /** * .protos.CollectionConfigPackage collections = 7; */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder(); /** * bool init_required = 8; * @return The initRequired. */ boolean getInitRequired(); } /** *
   * CommitChaincodeDefinitionArgs is the message used as arguments to
   * `_lifecycle.CommitChaincodeDefinition`.
   * 
* * Protobuf type {@code lifecycle.CommitChaincodeDefinitionArgs} */ public static final class CommitChaincodeDefinitionArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.CommitChaincodeDefinitionArgs) CommitChaincodeDefinitionArgsOrBuilder { private static final long serialVersionUID = 0L; // Use CommitChaincodeDefinitionArgs.newBuilder() to construct. private CommitChaincodeDefinitionArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitChaincodeDefinitionArgs() { name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitChaincodeDefinitionArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs.Builder.class); } public static final int SEQUENCE_FIELD_NUMBER = 1; private long sequence_; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * string name = 2; * @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; } } /** * string name = 2; * @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 VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object version_; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } public static final int ENDORSEMENT_PLUGIN_FIELD_NUMBER = 4; private volatile java.lang.Object endorsementPlugin_; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ @java.lang.Override public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; 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(); endorsementPlugin_ = s; return s; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PLUGIN_FIELD_NUMBER = 5; private volatile java.lang.Object validationPlugin_; /** * string validation_plugin = 5; * @return The validationPlugin. */ @java.lang.Override public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; 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(); validationPlugin_ = s; return s; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PARAMETER_FIELD_NUMBER = 6; private com.google.protobuf.ByteString validationParameter_; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } public static final int COLLECTIONS_FIELD_NUMBER = 7; private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ @java.lang.Override public boolean hasCollections() { return collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } /** * .protos.CollectionConfigPackage collections = 7; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { return getCollections(); } public static final int INIT_REQUIRED_FIELD_NUMBER = 8; private boolean initRequired_; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } 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 (sequence_ != 0L) { output.writeInt64(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationPlugin_); } if (!validationParameter_.isEmpty()) { output.writeBytes(6, validationParameter_); } if (collections_ != null) { output.writeMessage(7, getCollections()); } if (initRequired_ != false) { output.writeBool(8, initRequired_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationPlugin_); } if (!validationParameter_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, validationParameter_); } if (collections_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCollections()); } if (initRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, initRequired_); } 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs) obj; if (getSequence() != other.getSequence()) return false; if (!getName() .equals(other.getName())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEndorsementPlugin() .equals(other.getEndorsementPlugin())) return false; if (!getValidationPlugin() .equals(other.getValidationPlugin())) return false; if (!getValidationParameter() .equals(other.getValidationParameter())) return false; if (hasCollections() != other.hasCollections()) return false; if (hasCollections()) { if (!getCollections() .equals(other.getCollections())) return false; } if (getInitRequired() != other.getInitRequired()) 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) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + ENDORSEMENT_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getValidationPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getValidationParameter().hashCode(); if (hasCollections()) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollections().hashCode(); } hash = (37 * hash) + INIT_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitRequired()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs 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; } /** *
     * CommitChaincodeDefinitionArgs is the message used as arguments to
     * `_lifecycle.CommitChaincodeDefinition`.
     * 
* * Protobuf type {@code lifecycle.CommitChaincodeDefinitionArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.CommitChaincodeDefinitionArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); sequence_ = 0L; name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; if (collectionsBuilder_ == null) { collections_ = null; } else { collections_ = null; collectionsBuilder_ = null; } initRequired_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs(this); result.sequence_ = sequence_; result.name_ = name_; result.version_ = version_; result.endorsementPlugin_ = endorsementPlugin_; result.validationPlugin_ = validationPlugin_; result.validationParameter_ = validationParameter_; if (collectionsBuilder_ == null) { result.collections_ = collections_; } else { result.collections_ = collectionsBuilder_.build(); } result.initRequired_ = initRequired_; 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs.getDefaultInstance()) return this; if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getEndorsementPlugin().isEmpty()) { endorsementPlugin_ = other.endorsementPlugin_; onChanged(); } if (!other.getValidationPlugin().isEmpty()) { validationPlugin_ = other.validationPlugin_; onChanged(); } if (other.getValidationParameter() != com.google.protobuf.ByteString.EMPTY) { setValidationParameter(other.getValidationParameter()); } if (other.hasCollections()) { mergeCollections(other.getCollections()); } if (other.getInitRequired() != false) { setInitRequired(other.getInitRequired()); } 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 8: { sequence_ = input.readInt64(); break; } // case 8 case 18: { name_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { version_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { endorsementPlugin_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { validationPlugin_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { validationParameter_ = input.readBytes(); break; } // case 50 case 58: { input.readMessage( getCollectionsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 64: { initRequired_ = input.readBool(); break; } // case 64 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 long sequence_ ; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * int64 sequence = 1; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; onChanged(); return this; } /** * int64 sequence = 1; * @return This builder for chaining. */ public Builder clearSequence() { sequence_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2; * @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; } } /** * string name = 2; * @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; } } /** * string name = 2; * @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; } /** * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2; * @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 java.lang.Object version_ = ""; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } /** * string version = 3; * @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; } /** * string version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 3; * @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; } private java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endorsement_plugin = 4; * @param value The endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPlugin_ = value; onChanged(); return this; } /** * string endorsement_plugin = 4; * @return This builder for chaining. */ public Builder clearEndorsementPlugin() { endorsementPlugin_ = getDefaultInstance().getEndorsementPlugin(); onChanged(); return this; } /** * string endorsement_plugin = 4; * @param value The bytes for endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPlugin_ = value; onChanged(); return this; } private java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 5; * @return The validationPlugin. */ public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validation_plugin = 5; * @param value The validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validationPlugin_ = value; onChanged(); return this; } /** * string validation_plugin = 5; * @return This builder for chaining. */ public Builder clearValidationPlugin() { validationPlugin_ = getDefaultInstance().getValidationPlugin(); onChanged(); return this; } /** * string validation_plugin = 5; * @param value The bytes for validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validationPlugin_ = value; onChanged(); return this; } private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } /** * bytes validation_parameter = 6; * @param value The validationParameter to set. * @return This builder for chaining. */ public Builder setValidationParameter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validationParameter_ = value; onChanged(); return this; } /** * bytes validation_parameter = 6; * @return This builder for chaining. */ public Builder clearValidationParameter() { validationParameter_ = getDefaultInstance().getValidationParameter(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> collectionsBuilder_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ public boolean hasCollections() { return collectionsBuilder_ != null || collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { if (collectionsBuilder_ == null) { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } else { return collectionsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collections_ = value; onChanged(); } else { collectionsBuilder_.setMessage(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder builderForValue) { if (collectionsBuilder_ == null) { collections_ = builderForValue.build(); onChanged(); } else { collectionsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder mergeCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (collections_ != null) { collections_ = org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.newBuilder(collections_).mergeFrom(value).buildPartial(); } else { collections_ = value; } onChanged(); } else { collectionsBuilder_.mergeFrom(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder clearCollections() { if (collectionsBuilder_ == null) { collections_ = null; onChanged(); } else { collections_ = null; collectionsBuilder_ = null; } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder getCollectionsBuilder() { onChanged(); return getCollectionsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilder(); } else { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } } /** * .protos.CollectionConfigPackage collections = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder>( getCollections(), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private boolean initRequired_ ; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } /** * bool init_required = 8; * @param value The initRequired to set. * @return This builder for chaining. */ public Builder setInitRequired(boolean value) { initRequired_ = value; onChanged(); return this; } /** * bool init_required = 8; * @return This builder for chaining. */ public Builder clearInitRequired() { initRequired_ = false; 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:lifecycle.CommitChaincodeDefinitionArgs) } // @@protoc_insertion_point(class_scope:lifecycle.CommitChaincodeDefinitionArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitChaincodeDefinitionArgs 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.lifecycle.Lifecycle.CommitChaincodeDefinitionArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitChaincodeDefinitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.CommitChaincodeDefinitionResult) com.google.protobuf.MessageOrBuilder { } /** *
   * CommitChaincodeDefinitionResult is the message returned by
   * `_lifecycle.CommitChaincodeDefinition`. Currently it returns
   * nothing, but may be extended in the future.
   * 
* * Protobuf type {@code lifecycle.CommitChaincodeDefinitionResult} */ public static final class CommitChaincodeDefinitionResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.CommitChaincodeDefinitionResult) CommitChaincodeDefinitionResultOrBuilder { private static final long serialVersionUID = 0L; // Use CommitChaincodeDefinitionResult.newBuilder() to construct. private CommitChaincodeDefinitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitChaincodeDefinitionResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitChaincodeDefinitionResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult 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; } /** *
     * CommitChaincodeDefinitionResult is the message returned by
     * `_lifecycle.CommitChaincodeDefinition`. Currently it returns
     * nothing, but may be extended in the future.
     * 
* * Protobuf type {@code lifecycle.CommitChaincodeDefinitionResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.CommitChaincodeDefinitionResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CommitChaincodeDefinitionResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult(this); 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult.getDefaultInstance()) return this; 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; 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; } @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:lifecycle.CommitChaincodeDefinitionResult) } // @@protoc_insertion_point(class_scope:lifecycle.CommitChaincodeDefinitionResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CommitChaincodeDefinitionResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitChaincodeDefinitionResult 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.lifecycle.Lifecycle.CommitChaincodeDefinitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckCommitReadinessArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.CheckCommitReadinessArgs) com.google.protobuf.MessageOrBuilder { /** * int64 sequence = 1; * @return The sequence. */ long getSequence(); /** * string name = 2; * @return The name. */ java.lang.String getName(); /** * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string version = 3; * @return The version. */ java.lang.String getVersion(); /** * string version = 3; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ java.lang.String getEndorsementPlugin(); /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ com.google.protobuf.ByteString getEndorsementPluginBytes(); /** * string validation_plugin = 5; * @return The validationPlugin. */ java.lang.String getValidationPlugin(); /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ com.google.protobuf.ByteString getValidationPluginBytes(); /** * bytes validation_parameter = 6; * @return The validationParameter. */ com.google.protobuf.ByteString getValidationParameter(); /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ boolean hasCollections(); /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections(); /** * .protos.CollectionConfigPackage collections = 7; */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder(); /** * bool init_required = 8; * @return The initRequired. */ boolean getInitRequired(); } /** *
   * CheckCommitReadinessArgs is the message used as arguments to
   * `_lifecycle.CheckCommitReadiness`.
   * 
* * Protobuf type {@code lifecycle.CheckCommitReadinessArgs} */ public static final class CheckCommitReadinessArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.CheckCommitReadinessArgs) CheckCommitReadinessArgsOrBuilder { private static final long serialVersionUID = 0L; // Use CheckCommitReadinessArgs.newBuilder() to construct. private CheckCommitReadinessArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckCommitReadinessArgs() { name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CheckCommitReadinessArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs.Builder.class); } public static final int SEQUENCE_FIELD_NUMBER = 1; private long sequence_; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * string name = 2; * @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; } } /** * string name = 2; * @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 VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object version_; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } public static final int ENDORSEMENT_PLUGIN_FIELD_NUMBER = 4; private volatile java.lang.Object endorsementPlugin_; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ @java.lang.Override public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; 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(); endorsementPlugin_ = s; return s; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PLUGIN_FIELD_NUMBER = 5; private volatile java.lang.Object validationPlugin_; /** * string validation_plugin = 5; * @return The validationPlugin. */ @java.lang.Override public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; 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(); validationPlugin_ = s; return s; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PARAMETER_FIELD_NUMBER = 6; private com.google.protobuf.ByteString validationParameter_; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } public static final int COLLECTIONS_FIELD_NUMBER = 7; private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ @java.lang.Override public boolean hasCollections() { return collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } /** * .protos.CollectionConfigPackage collections = 7; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { return getCollections(); } public static final int INIT_REQUIRED_FIELD_NUMBER = 8; private boolean initRequired_; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } 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 (sequence_ != 0L) { output.writeInt64(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationPlugin_); } if (!validationParameter_.isEmpty()) { output.writeBytes(6, validationParameter_); } if (collections_ != null) { output.writeMessage(7, getCollections()); } if (initRequired_ != false) { output.writeBool(8, initRequired_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationPlugin_); } if (!validationParameter_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, validationParameter_); } if (collections_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCollections()); } if (initRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, initRequired_); } 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.lifecycle.Lifecycle.CheckCommitReadinessArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs) obj; if (getSequence() != other.getSequence()) return false; if (!getName() .equals(other.getName())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEndorsementPlugin() .equals(other.getEndorsementPlugin())) return false; if (!getValidationPlugin() .equals(other.getValidationPlugin())) return false; if (!getValidationParameter() .equals(other.getValidationParameter())) return false; if (hasCollections() != other.hasCollections()) return false; if (hasCollections()) { if (!getCollections() .equals(other.getCollections())) return false; } if (getInitRequired() != other.getInitRequired()) 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) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + ENDORSEMENT_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getValidationPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getValidationParameter().hashCode(); if (hasCollections()) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollections().hashCode(); } hash = (37 * hash) + INIT_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitRequired()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs 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; } /** *
     * CheckCommitReadinessArgs is the message used as arguments to
     * `_lifecycle.CheckCommitReadiness`.
     * 
* * Protobuf type {@code lifecycle.CheckCommitReadinessArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.CheckCommitReadinessArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); sequence_ = 0L; name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; if (collectionsBuilder_ == null) { collections_ = null; } else { collections_ = null; collectionsBuilder_ = null; } initRequired_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs(this); result.sequence_ = sequence_; result.name_ = name_; result.version_ = version_; result.endorsementPlugin_ = endorsementPlugin_; result.validationPlugin_ = validationPlugin_; result.validationParameter_ = validationParameter_; if (collectionsBuilder_ == null) { result.collections_ = collections_; } else { result.collections_ = collectionsBuilder_.build(); } result.initRequired_ = initRequired_; 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.lifecycle.Lifecycle.CheckCommitReadinessArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs.getDefaultInstance()) return this; if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getEndorsementPlugin().isEmpty()) { endorsementPlugin_ = other.endorsementPlugin_; onChanged(); } if (!other.getValidationPlugin().isEmpty()) { validationPlugin_ = other.validationPlugin_; onChanged(); } if (other.getValidationParameter() != com.google.protobuf.ByteString.EMPTY) { setValidationParameter(other.getValidationParameter()); } if (other.hasCollections()) { mergeCollections(other.getCollections()); } if (other.getInitRequired() != false) { setInitRequired(other.getInitRequired()); } 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 8: { sequence_ = input.readInt64(); break; } // case 8 case 18: { name_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { version_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { endorsementPlugin_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { validationPlugin_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { validationParameter_ = input.readBytes(); break; } // case 50 case 58: { input.readMessage( getCollectionsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 64: { initRequired_ = input.readBool(); break; } // case 64 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 long sequence_ ; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * int64 sequence = 1; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; onChanged(); return this; } /** * int64 sequence = 1; * @return This builder for chaining. */ public Builder clearSequence() { sequence_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2; * @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; } } /** * string name = 2; * @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; } } /** * string name = 2; * @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; } /** * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2; * @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 java.lang.Object version_ = ""; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } /** * string version = 3; * @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; } /** * string version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 3; * @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; } private java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endorsement_plugin = 4; * @param value The endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPlugin_ = value; onChanged(); return this; } /** * string endorsement_plugin = 4; * @return This builder for chaining. */ public Builder clearEndorsementPlugin() { endorsementPlugin_ = getDefaultInstance().getEndorsementPlugin(); onChanged(); return this; } /** * string endorsement_plugin = 4; * @param value The bytes for endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPlugin_ = value; onChanged(); return this; } private java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 5; * @return The validationPlugin. */ public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validation_plugin = 5; * @param value The validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validationPlugin_ = value; onChanged(); return this; } /** * string validation_plugin = 5; * @return This builder for chaining. */ public Builder clearValidationPlugin() { validationPlugin_ = getDefaultInstance().getValidationPlugin(); onChanged(); return this; } /** * string validation_plugin = 5; * @param value The bytes for validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validationPlugin_ = value; onChanged(); return this; } private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } /** * bytes validation_parameter = 6; * @param value The validationParameter to set. * @return This builder for chaining. */ public Builder setValidationParameter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validationParameter_ = value; onChanged(); return this; } /** * bytes validation_parameter = 6; * @return This builder for chaining. */ public Builder clearValidationParameter() { validationParameter_ = getDefaultInstance().getValidationParameter(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> collectionsBuilder_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ public boolean hasCollections() { return collectionsBuilder_ != null || collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { if (collectionsBuilder_ == null) { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } else { return collectionsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collections_ = value; onChanged(); } else { collectionsBuilder_.setMessage(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder builderForValue) { if (collectionsBuilder_ == null) { collections_ = builderForValue.build(); onChanged(); } else { collectionsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder mergeCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (collections_ != null) { collections_ = org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.newBuilder(collections_).mergeFrom(value).buildPartial(); } else { collections_ = value; } onChanged(); } else { collectionsBuilder_.mergeFrom(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder clearCollections() { if (collectionsBuilder_ == null) { collections_ = null; onChanged(); } else { collections_ = null; collectionsBuilder_ = null; } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder getCollectionsBuilder() { onChanged(); return getCollectionsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilder(); } else { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } } /** * .protos.CollectionConfigPackage collections = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder>( getCollections(), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private boolean initRequired_ ; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } /** * bool init_required = 8; * @param value The initRequired to set. * @return This builder for chaining. */ public Builder setInitRequired(boolean value) { initRequired_ = value; onChanged(); return this; } /** * bool init_required = 8; * @return This builder for chaining. */ public Builder clearInitRequired() { initRequired_ = false; 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:lifecycle.CheckCommitReadinessArgs) } // @@protoc_insertion_point(class_scope:lifecycle.CheckCommitReadinessArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CheckCommitReadinessArgs 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.lifecycle.Lifecycle.CheckCommitReadinessArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckCommitReadinessResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.CheckCommitReadinessResult) com.google.protobuf.MessageOrBuilder { /** * map<string, bool> approvals = 1; */ int getApprovalsCount(); /** * map<string, bool> approvals = 1; */ boolean containsApprovals( java.lang.String key); /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Deprecated java.util.Map getApprovals(); /** * map<string, bool> approvals = 1; */ java.util.Map getApprovalsMap(); /** * map<string, bool> approvals = 1; */ boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue); /** * map<string, bool> approvals = 1; */ boolean getApprovalsOrThrow( java.lang.String key); } /** *
   * CheckCommitReadinessResult is the message returned by
   * `_lifecycle.CheckCommitReadiness`. It returns a map of
   * orgs to their approval (true/false) for the definition 
   * supplied as args.
   * 
* * Protobuf type {@code lifecycle.CheckCommitReadinessResult} */ public static final class CheckCommitReadinessResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.CheckCommitReadinessResult) CheckCommitReadinessResultOrBuilder { private static final long serialVersionUID = 0L; // Use CheckCommitReadinessResult.newBuilder() to construct. private CheckCommitReadinessResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckCommitReadinessResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CheckCommitReadinessResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetApprovals(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult.Builder.class); } public static final int APPROVALS_FIELD_NUMBER = 1; private static final class ApprovalsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Boolean> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessResult_ApprovalsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BOOL, false); } private com.google.protobuf.MapField< java.lang.String, java.lang.Boolean> approvals_; private com.google.protobuf.MapField internalGetApprovals() { if (approvals_ == null) { return com.google.protobuf.MapField.emptyMapField( ApprovalsDefaultEntryHolder.defaultEntry); } return approvals_; } public int getApprovalsCount() { return internalGetApprovals().getMap().size(); } /** * map<string, bool> approvals = 1; */ @java.lang.Override public boolean containsApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetApprovals().getMap().containsKey(key); } /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getApprovals() { return getApprovalsMap(); } /** * map<string, bool> approvals = 1; */ @java.lang.Override public java.util.Map getApprovalsMap() { return internalGetApprovals().getMap(); } /** * map<string, bool> approvals = 1; */ @java.lang.Override public boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bool> approvals = 1; */ @java.lang.Override public boolean getApprovalsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetApprovals(), ApprovalsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetApprovals().getMap().entrySet()) { com.google.protobuf.MapEntry approvals__ = ApprovalsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, approvals__); } 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.lifecycle.Lifecycle.CheckCommitReadinessResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult) obj; if (!internalGetApprovals().equals( other.internalGetApprovals())) 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 (!internalGetApprovals().getMap().isEmpty()) { hash = (37 * hash) + APPROVALS_FIELD_NUMBER; hash = (53 * hash) + internalGetApprovals().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult 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; } /** *
     * CheckCommitReadinessResult is the message returned by
     * `_lifecycle.CheckCommitReadiness`. It returns a map of
     * orgs to their approval (true/false) for the definition 
     * supplied as args.
     * 
* * Protobuf type {@code lifecycle.CheckCommitReadinessResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.CheckCommitReadinessResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetApprovals(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableApprovals(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableApprovals().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_CheckCommitReadinessResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult(this); int from_bitField0_ = bitField0_; result.approvals_ = internalGetApprovals(); result.approvals_.makeImmutable(); 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.lifecycle.Lifecycle.CheckCommitReadinessResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult.getDefaultInstance()) return this; internalGetMutableApprovals().mergeFrom( other.internalGetApprovals()); 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: { com.google.protobuf.MapEntry approvals__ = input.readMessage( ApprovalsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableApprovals().getMutableMap().put( approvals__.getKey(), approvals__.getValue()); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.Boolean> approvals_; private com.google.protobuf.MapField internalGetApprovals() { if (approvals_ == null) { return com.google.protobuf.MapField.emptyMapField( ApprovalsDefaultEntryHolder.defaultEntry); } return approvals_; } private com.google.protobuf.MapField internalGetMutableApprovals() { onChanged();; if (approvals_ == null) { approvals_ = com.google.protobuf.MapField.newMapField( ApprovalsDefaultEntryHolder.defaultEntry); } if (!approvals_.isMutable()) { approvals_ = approvals_.copy(); } return approvals_; } public int getApprovalsCount() { return internalGetApprovals().getMap().size(); } /** * map<string, bool> approvals = 1; */ @java.lang.Override public boolean containsApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetApprovals().getMap().containsKey(key); } /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getApprovals() { return getApprovalsMap(); } /** * map<string, bool> approvals = 1; */ @java.lang.Override public java.util.Map getApprovalsMap() { return internalGetApprovals().getMap(); } /** * map<string, bool> approvals = 1; */ @java.lang.Override public boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bool> approvals = 1; */ @java.lang.Override public boolean getApprovalsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearApprovals() { internalGetMutableApprovals().getMutableMap() .clear(); return this; } /** * map<string, bool> approvals = 1; */ public Builder removeApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableApprovals().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableApprovals() { return internalGetMutableApprovals().getMutableMap(); } /** * map<string, bool> approvals = 1; */ public Builder putApprovals( java.lang.String key, boolean value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableApprovals().getMutableMap() .put(key, value); return this; } /** * map<string, bool> approvals = 1; */ public Builder putAllApprovals( java.util.Map values) { internalGetMutableApprovals().getMutableMap() .putAll(values); 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:lifecycle.CheckCommitReadinessResult) } // @@protoc_insertion_point(class_scope:lifecycle.CheckCommitReadinessResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.CheckCommitReadinessResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CheckCommitReadinessResult 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.lifecycle.Lifecycle.CheckCommitReadinessResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryChaincodeDefinitionArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryChaincodeDefinitionArgs) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * QueryChaincodeDefinitionArgs is the message used as arguments to
   * `_lifecycle.QueryChaincodeDefinition`.
   * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionArgs} */ public static final class QueryChaincodeDefinitionArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryChaincodeDefinitionArgs) QueryChaincodeDefinitionArgsOrBuilder { private static final long serialVersionUID = 0L; // Use QueryChaincodeDefinitionArgs.newBuilder() to construct. private QueryChaincodeDefinitionArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryChaincodeDefinitionArgs() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryChaincodeDefinitionArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * 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; } } /** * 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs) 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs 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; } /** *
     * QueryChaincodeDefinitionArgs is the message used as arguments to
     * `_lifecycle.QueryChaincodeDefinition`.
     * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryChaincodeDefinitionArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs.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.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs(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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs.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_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * 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:lifecycle.QueryChaincodeDefinitionArgs) } // @@protoc_insertion_point(class_scope:lifecycle.QueryChaincodeDefinitionArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryChaincodeDefinitionArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryChaincodeDefinitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryChaincodeDefinitionResult) com.google.protobuf.MessageOrBuilder { /** * int64 sequence = 1; * @return The sequence. */ long getSequence(); /** * string version = 2; * @return The version. */ java.lang.String getVersion(); /** * string version = 2; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * string endorsement_plugin = 3; * @return The endorsementPlugin. */ java.lang.String getEndorsementPlugin(); /** * string endorsement_plugin = 3; * @return The bytes for endorsementPlugin. */ com.google.protobuf.ByteString getEndorsementPluginBytes(); /** * string validation_plugin = 4; * @return The validationPlugin. */ java.lang.String getValidationPlugin(); /** * string validation_plugin = 4; * @return The bytes for validationPlugin. */ com.google.protobuf.ByteString getValidationPluginBytes(); /** * bytes validation_parameter = 5; * @return The validationParameter. */ com.google.protobuf.ByteString getValidationParameter(); /** * .protos.CollectionConfigPackage collections = 6; * @return Whether the collections field is set. */ boolean hasCollections(); /** * .protos.CollectionConfigPackage collections = 6; * @return The collections. */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections(); /** * .protos.CollectionConfigPackage collections = 6; */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder(); /** * bool init_required = 7; * @return The initRequired. */ boolean getInitRequired(); /** * map<string, bool> approvals = 8; */ int getApprovalsCount(); /** * map<string, bool> approvals = 8; */ boolean containsApprovals( java.lang.String key); /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Deprecated java.util.Map getApprovals(); /** * map<string, bool> approvals = 8; */ java.util.Map getApprovalsMap(); /** * map<string, bool> approvals = 8; */ boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue); /** * map<string, bool> approvals = 8; */ boolean getApprovalsOrThrow( java.lang.String key); } /** *
   * QueryChaincodeDefinitionResult is the message returned by
   * `_lifecycle.QueryChaincodeDefinition`.
   * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionResult} */ public static final class QueryChaincodeDefinitionResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryChaincodeDefinitionResult) QueryChaincodeDefinitionResultOrBuilder { private static final long serialVersionUID = 0L; // Use QueryChaincodeDefinitionResult.newBuilder() to construct. private QueryChaincodeDefinitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryChaincodeDefinitionResult() { version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryChaincodeDefinitionResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 8: return internalGetApprovals(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult.Builder.class); } public static final int SEQUENCE_FIELD_NUMBER = 1; private long sequence_; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** * 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; } } /** * 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; } } public static final int ENDORSEMENT_PLUGIN_FIELD_NUMBER = 3; private volatile java.lang.Object endorsementPlugin_; /** * string endorsement_plugin = 3; * @return The endorsementPlugin. */ @java.lang.Override public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; 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(); endorsementPlugin_ = s; return s; } } /** * string endorsement_plugin = 3; * @return The bytes for endorsementPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PLUGIN_FIELD_NUMBER = 4; private volatile java.lang.Object validationPlugin_; /** * string validation_plugin = 4; * @return The validationPlugin. */ @java.lang.Override public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; 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(); validationPlugin_ = s; return s; } } /** * string validation_plugin = 4; * @return The bytes for validationPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PARAMETER_FIELD_NUMBER = 5; private com.google.protobuf.ByteString validationParameter_; /** * bytes validation_parameter = 5; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } public static final int COLLECTIONS_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; /** * .protos.CollectionConfigPackage collections = 6; * @return Whether the collections field is set. */ @java.lang.Override public boolean hasCollections() { return collections_ != null; } /** * .protos.CollectionConfigPackage collections = 6; * @return The collections. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } /** * .protos.CollectionConfigPackage collections = 6; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { return getCollections(); } public static final int INIT_REQUIRED_FIELD_NUMBER = 7; private boolean initRequired_; /** * bool init_required = 7; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } public static final int APPROVALS_FIELD_NUMBER = 8; private static final class ApprovalsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Boolean> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionResult_ApprovalsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BOOL, false); } private com.google.protobuf.MapField< java.lang.String, java.lang.Boolean> approvals_; private com.google.protobuf.MapField internalGetApprovals() { if (approvals_ == null) { return com.google.protobuf.MapField.emptyMapField( ApprovalsDefaultEntryHolder.defaultEntry); } return approvals_; } public int getApprovalsCount() { return internalGetApprovals().getMap().size(); } /** * map<string, bool> approvals = 8; */ @java.lang.Override public boolean containsApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetApprovals().getMap().containsKey(key); } /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getApprovals() { return getApprovalsMap(); } /** * map<string, bool> approvals = 8; */ @java.lang.Override public java.util.Map getApprovalsMap() { return internalGetApprovals().getMap(); } /** * map<string, bool> approvals = 8; */ @java.lang.Override public boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bool> approvals = 8; */ @java.lang.Override public boolean getApprovalsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sequence_ != 0L) { output.writeInt64(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validationPlugin_); } if (!validationParameter_.isEmpty()) { output.writeBytes(5, validationParameter_); } if (collections_ != null) { output.writeMessage(6, getCollections()); } if (initRequired_ != false) { output.writeBool(7, initRequired_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetApprovals(), ApprovalsDefaultEntryHolder.defaultEntry, 8); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, validationPlugin_); } if (!validationParameter_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, validationParameter_); } if (collections_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCollections()); } if (initRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, initRequired_); } for (java.util.Map.Entry entry : internalGetApprovals().getMap().entrySet()) { com.google.protobuf.MapEntry approvals__ = ApprovalsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, approvals__); } 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult) obj; if (getSequence() != other.getSequence()) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEndorsementPlugin() .equals(other.getEndorsementPlugin())) return false; if (!getValidationPlugin() .equals(other.getValidationPlugin())) return false; if (!getValidationParameter() .equals(other.getValidationParameter())) return false; if (hasCollections() != other.hasCollections()) return false; if (hasCollections()) { if (!getCollections() .equals(other.getCollections())) return false; } if (getInitRequired() != other.getInitRequired()) return false; if (!internalGetApprovals().equals( other.internalGetApprovals())) 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) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + ENDORSEMENT_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getValidationPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getValidationParameter().hashCode(); if (hasCollections()) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollections().hashCode(); } hash = (37 * hash) + INIT_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitRequired()); if (!internalGetApprovals().getMap().isEmpty()) { hash = (37 * hash) + APPROVALS_FIELD_NUMBER; hash = (53 * hash) + internalGetApprovals().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult 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; } /** *
     * QueryChaincodeDefinitionResult is the message returned by
     * `_lifecycle.QueryChaincodeDefinition`.
     * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryChaincodeDefinitionResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 8: return internalGetApprovals(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 8: return internalGetMutableApprovals(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); sequence_ = 0L; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; if (collectionsBuilder_ == null) { collections_ = null; } else { collections_ = null; collectionsBuilder_ = null; } initRequired_ = false; internalGetMutableApprovals().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult(this); int from_bitField0_ = bitField0_; result.sequence_ = sequence_; result.version_ = version_; result.endorsementPlugin_ = endorsementPlugin_; result.validationPlugin_ = validationPlugin_; result.validationParameter_ = validationParameter_; if (collectionsBuilder_ == null) { result.collections_ = collections_; } else { result.collections_ = collectionsBuilder_.build(); } result.initRequired_ = initRequired_; result.approvals_ = internalGetApprovals(); result.approvals_.makeImmutable(); 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult.getDefaultInstance()) return this; if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getEndorsementPlugin().isEmpty()) { endorsementPlugin_ = other.endorsementPlugin_; onChanged(); } if (!other.getValidationPlugin().isEmpty()) { validationPlugin_ = other.validationPlugin_; onChanged(); } if (other.getValidationParameter() != com.google.protobuf.ByteString.EMPTY) { setValidationParameter(other.getValidationParameter()); } if (other.hasCollections()) { mergeCollections(other.getCollections()); } if (other.getInitRequired() != false) { setInitRequired(other.getInitRequired()); } internalGetMutableApprovals().mergeFrom( other.internalGetApprovals()); 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 8: { sequence_ = input.readInt64(); break; } // case 8 case 18: { version_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { endorsementPlugin_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { validationPlugin_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { validationParameter_ = input.readBytes(); break; } // case 42 case 50: { input.readMessage( getCollectionsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 56: { initRequired_ = input.readBool(); break; } // case 56 case 66: { com.google.protobuf.MapEntry approvals__ = input.readMessage( ApprovalsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableApprovals().getMutableMap().put( approvals__.getKey(), approvals__.getValue()); break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long sequence_ ; /** * int64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * int64 sequence = 1; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; onChanged(); return this; } /** * int64 sequence = 1; * @return This builder for chaining. */ public Builder clearSequence() { sequence_ = 0L; onChanged(); return this; } private java.lang.Object version_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string version = 2; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * 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; } private java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 3; * @return The endorsementPlugin. */ public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endorsement_plugin = 3; * @return The bytes for endorsementPlugin. */ public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endorsement_plugin = 3; * @param value The endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPlugin_ = value; onChanged(); return this; } /** * string endorsement_plugin = 3; * @return This builder for chaining. */ public Builder clearEndorsementPlugin() { endorsementPlugin_ = getDefaultInstance().getEndorsementPlugin(); onChanged(); return this; } /** * string endorsement_plugin = 3; * @param value The bytes for endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPlugin_ = value; onChanged(); return this; } private java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 4; * @return The validationPlugin. */ public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validation_plugin = 4; * @return The bytes for validationPlugin. */ public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validation_plugin = 4; * @param value The validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validationPlugin_ = value; onChanged(); return this; } /** * string validation_plugin = 4; * @return This builder for chaining. */ public Builder clearValidationPlugin() { validationPlugin_ = getDefaultInstance().getValidationPlugin(); onChanged(); return this; } /** * string validation_plugin = 4; * @param value The bytes for validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validationPlugin_ = value; onChanged(); return this; } private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 5; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } /** * bytes validation_parameter = 5; * @param value The validationParameter to set. * @return This builder for chaining. */ public Builder setValidationParameter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validationParameter_ = value; onChanged(); return this; } /** * bytes validation_parameter = 5; * @return This builder for chaining. */ public Builder clearValidationParameter() { validationParameter_ = getDefaultInstance().getValidationParameter(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> collectionsBuilder_; /** * .protos.CollectionConfigPackage collections = 6; * @return Whether the collections field is set. */ public boolean hasCollections() { return collectionsBuilder_ != null || collections_ != null; } /** * .protos.CollectionConfigPackage collections = 6; * @return The collections. */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { if (collectionsBuilder_ == null) { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } else { return collectionsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collections = 6; */ public Builder setCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collections_ = value; onChanged(); } else { collectionsBuilder_.setMessage(value); } return this; } /** * .protos.CollectionConfigPackage collections = 6; */ public Builder setCollections( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder builderForValue) { if (collectionsBuilder_ == null) { collections_ = builderForValue.build(); onChanged(); } else { collectionsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protos.CollectionConfigPackage collections = 6; */ public Builder mergeCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (collections_ != null) { collections_ = org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.newBuilder(collections_).mergeFrom(value).buildPartial(); } else { collections_ = value; } onChanged(); } else { collectionsBuilder_.mergeFrom(value); } return this; } /** * .protos.CollectionConfigPackage collections = 6; */ public Builder clearCollections() { if (collectionsBuilder_ == null) { collections_ = null; onChanged(); } else { collections_ = null; collectionsBuilder_ = null; } return this; } /** * .protos.CollectionConfigPackage collections = 6; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder getCollectionsBuilder() { onChanged(); return getCollectionsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collections = 6; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilder(); } else { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } } /** * .protos.CollectionConfigPackage collections = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder>( getCollections(), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private boolean initRequired_ ; /** * bool init_required = 7; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } /** * bool init_required = 7; * @param value The initRequired to set. * @return This builder for chaining. */ public Builder setInitRequired(boolean value) { initRequired_ = value; onChanged(); return this; } /** * bool init_required = 7; * @return This builder for chaining. */ public Builder clearInitRequired() { initRequired_ = false; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Boolean> approvals_; private com.google.protobuf.MapField internalGetApprovals() { if (approvals_ == null) { return com.google.protobuf.MapField.emptyMapField( ApprovalsDefaultEntryHolder.defaultEntry); } return approvals_; } private com.google.protobuf.MapField internalGetMutableApprovals() { onChanged();; if (approvals_ == null) { approvals_ = com.google.protobuf.MapField.newMapField( ApprovalsDefaultEntryHolder.defaultEntry); } if (!approvals_.isMutable()) { approvals_ = approvals_.copy(); } return approvals_; } public int getApprovalsCount() { return internalGetApprovals().getMap().size(); } /** * map<string, bool> approvals = 8; */ @java.lang.Override public boolean containsApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetApprovals().getMap().containsKey(key); } /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getApprovals() { return getApprovalsMap(); } /** * map<string, bool> approvals = 8; */ @java.lang.Override public java.util.Map getApprovalsMap() { return internalGetApprovals().getMap(); } /** * map<string, bool> approvals = 8; */ @java.lang.Override public boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bool> approvals = 8; */ @java.lang.Override public boolean getApprovalsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearApprovals() { internalGetMutableApprovals().getMutableMap() .clear(); return this; } /** * map<string, bool> approvals = 8; */ public Builder removeApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableApprovals().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableApprovals() { return internalGetMutableApprovals().getMutableMap(); } /** * map<string, bool> approvals = 8; */ public Builder putApprovals( java.lang.String key, boolean value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableApprovals().getMutableMap() .put(key, value); return this; } /** * map<string, bool> approvals = 8; */ public Builder putAllApprovals( java.util.Map values) { internalGetMutableApprovals().getMutableMap() .putAll(values); 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:lifecycle.QueryChaincodeDefinitionResult) } // @@protoc_insertion_point(class_scope:lifecycle.QueryChaincodeDefinitionResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryChaincodeDefinitionResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryChaincodeDefinitionsArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryChaincodeDefinitionsArgs) com.google.protobuf.MessageOrBuilder { } /** *
   * QueryChaincodeDefinitionsArgs is the message used as arguments to
   * `_lifecycle.QueryChaincodeDefinitions`.
   * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsArgs} */ public static final class QueryChaincodeDefinitionsArgs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryChaincodeDefinitionsArgs) QueryChaincodeDefinitionsArgsOrBuilder { private static final long serialVersionUID = 0L; // Use QueryChaincodeDefinitionsArgs.newBuilder() to construct. private QueryChaincodeDefinitionsArgs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryChaincodeDefinitionsArgs() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryChaincodeDefinitionsArgs(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs 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; } /** *
     * QueryChaincodeDefinitionsArgs is the message used as arguments to
     * `_lifecycle.QueryChaincodeDefinitions`.
     * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsArgs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryChaincodeDefinitionsArgs) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsArgs_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs(this); 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs.getDefaultInstance()) return this; 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; 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; } @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:lifecycle.QueryChaincodeDefinitionsArgs) } // @@protoc_insertion_point(class_scope:lifecycle.QueryChaincodeDefinitionsArgs) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryChaincodeDefinitionsArgs 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryChaincodeDefinitionsResultOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryChaincodeDefinitionsResult) com.google.protobuf.MessageOrBuilder { /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ java.util.List getChaincodeDefinitionsList(); /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getChaincodeDefinitions(int index); /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ int getChaincodeDefinitionsCount(); /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ java.util.List getChaincodeDefinitionsOrBuilderList(); /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder getChaincodeDefinitionsOrBuilder( int index); } /** *
   * QueryChaincodeDefinitionsResult is the message returned by
   * `_lifecycle.QueryChaincodeDefinitions`.
   * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult} */ public static final class QueryChaincodeDefinitionsResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryChaincodeDefinitionsResult) QueryChaincodeDefinitionsResultOrBuilder { private static final long serialVersionUID = 0L; // Use QueryChaincodeDefinitionsResult.newBuilder() to construct. private QueryChaincodeDefinitionsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryChaincodeDefinitionsResult() { chaincodeDefinitions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryChaincodeDefinitionsResult(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.Builder.class); } public interface ChaincodeDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * int64 sequence = 2; * @return The sequence. */ long getSequence(); /** * string version = 3; * @return The version. */ java.lang.String getVersion(); /** * string version = 3; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ java.lang.String getEndorsementPlugin(); /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ com.google.protobuf.ByteString getEndorsementPluginBytes(); /** * string validation_plugin = 5; * @return The validationPlugin. */ java.lang.String getValidationPlugin(); /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ com.google.protobuf.ByteString getValidationPluginBytes(); /** * bytes validation_parameter = 6; * @return The validationParameter. */ com.google.protobuf.ByteString getValidationParameter(); /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ boolean hasCollections(); /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections(); /** * .protos.CollectionConfigPackage collections = 7; */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder(); /** * bool init_required = 8; * @return The initRequired. */ boolean getInitRequired(); } /** * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition} */ public static final class ChaincodeDefinition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) ChaincodeDefinitionOrBuilder { private static final long serialVersionUID = 0L; // Use ChaincodeDefinition.newBuilder() to construct. private ChaincodeDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeDefinition() { name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeDefinition(); } @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.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * 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; } } /** * 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 SEQUENCE_FIELD_NUMBER = 2; private long sequence_; /** * int64 sequence = 2; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object version_; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } public static final int ENDORSEMENT_PLUGIN_FIELD_NUMBER = 4; private volatile java.lang.Object endorsementPlugin_; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ @java.lang.Override public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; 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(); endorsementPlugin_ = s; return s; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PLUGIN_FIELD_NUMBER = 5; private volatile java.lang.Object validationPlugin_; /** * string validation_plugin = 5; * @return The validationPlugin. */ @java.lang.Override public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; 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(); validationPlugin_ = s; return s; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PARAMETER_FIELD_NUMBER = 6; private com.google.protobuf.ByteString validationParameter_; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } public static final int COLLECTIONS_FIELD_NUMBER = 7; private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ @java.lang.Override public boolean hasCollections() { return collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } /** * .protos.CollectionConfigPackage collections = 7; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { return getCollections(); } public static final int INIT_REQUIRED_FIELD_NUMBER = 8; private boolean initRequired_; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } 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 (sequence_ != 0L) { output.writeInt64(2, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationPlugin_); } if (!validationParameter_.isEmpty()) { output.writeBytes(6, validationParameter_); } if (collections_ != null) { output.writeMessage(7, getCollections()); } if (initRequired_ != false) { output.writeBool(8, initRequired_); } 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 (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, sequence_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endorsementPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationPlugin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationPlugin_); } if (!validationParameter_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, validationParameter_); } if (collections_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCollections()); } if (initRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, initRequired_); } 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) obj; if (!getName() .equals(other.getName())) return false; if (getSequence() != other.getSequence()) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEndorsementPlugin() .equals(other.getEndorsementPlugin())) return false; if (!getValidationPlugin() .equals(other.getValidationPlugin())) return false; if (!getValidationParameter() .equals(other.getValidationParameter())) return false; if (hasCollections() != other.hasCollections()) return false; if (hasCollections()) { if (!getCollections() .equals(other.getCollections())) return false; } if (getInitRequired() != other.getInitRequired()) 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) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + ENDORSEMENT_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getValidationPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getValidationParameter().hashCode(); if (hasCollections()) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollections().hashCode(); } hash = (37 * hash) + INIT_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitRequired()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; sequence_ = 0L; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; if (collectionsBuilder_ == null) { collections_ = null; } else { collections_ = null; collectionsBuilder_ = null; } initRequired_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition(this); result.name_ = name_; result.sequence_ = sequence_; result.version_ = version_; result.endorsementPlugin_ = endorsementPlugin_; result.validationPlugin_ = validationPlugin_; result.validationParameter_ = validationParameter_; if (collectionsBuilder_ == null) { result.collections_ = collections_; } else { result.collections_ = collectionsBuilder_.build(); } result.initRequired_ = initRequired_; 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getEndorsementPlugin().isEmpty()) { endorsementPlugin_ = other.endorsementPlugin_; onChanged(); } if (!other.getValidationPlugin().isEmpty()) { validationPlugin_ = other.validationPlugin_; onChanged(); } if (other.getValidationParameter() != com.google.protobuf.ByteString.EMPTY) { setValidationParameter(other.getValidationParameter()); } if (other.hasCollections()) { mergeCollections(other.getCollections()); } if (other.getInitRequired() != false) { setInitRequired(other.getInitRequired()); } 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 16: { sequence_ = input.readInt64(); break; } // case 16 case 26: { version_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { endorsementPlugin_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { validationPlugin_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { validationParameter_ = input.readBytes(); break; } // case 50 case 58: { input.readMessage( getCollectionsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 64: { initRequired_ = input.readBool(); break; } // case 64 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_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * 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 long sequence_ ; /** * int64 sequence = 2; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * int64 sequence = 2; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; onChanged(); return this; } /** * int64 sequence = 2; * @return This builder for chaining. */ public Builder clearSequence() { sequence_ = 0L; onChanged(); return this; } private java.lang.Object version_ = ""; /** * string version = 3; * @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; } } /** * string version = 3; * @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; } } /** * string version = 3; * @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; } /** * string version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 3; * @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; } private java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 4; * @return The endorsementPlugin. */ public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endorsement_plugin = 4; * @return The bytes for endorsementPlugin. */ public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endorsement_plugin = 4; * @param value The endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPlugin_ = value; onChanged(); return this; } /** * string endorsement_plugin = 4; * @return This builder for chaining. */ public Builder clearEndorsementPlugin() { endorsementPlugin_ = getDefaultInstance().getEndorsementPlugin(); onChanged(); return this; } /** * string endorsement_plugin = 4; * @param value The bytes for endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPlugin_ = value; onChanged(); return this; } private java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 5; * @return The validationPlugin. */ public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validation_plugin = 5; * @return The bytes for validationPlugin. */ public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validation_plugin = 5; * @param value The validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validationPlugin_ = value; onChanged(); return this; } /** * string validation_plugin = 5; * @return This builder for chaining. */ public Builder clearValidationPlugin() { validationPlugin_ = getDefaultInstance().getValidationPlugin(); onChanged(); return this; } /** * string validation_plugin = 5; * @param value The bytes for validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validationPlugin_ = value; onChanged(); return this; } private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 6; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } /** * bytes validation_parameter = 6; * @param value The validationParameter to set. * @return This builder for chaining. */ public Builder setValidationParameter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validationParameter_ = value; onChanged(); return this; } /** * bytes validation_parameter = 6; * @return This builder for chaining. */ public Builder clearValidationParameter() { validationParameter_ = getDefaultInstance().getValidationParameter(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collections_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> collectionsBuilder_; /** * .protos.CollectionConfigPackage collections = 7; * @return Whether the collections field is set. */ public boolean hasCollections() { return collectionsBuilder_ != null || collections_ != null; } /** * .protos.CollectionConfigPackage collections = 7; * @return The collections. */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollections() { if (collectionsBuilder_ == null) { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } else { return collectionsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collections_ = value; onChanged(); } else { collectionsBuilder_.setMessage(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder setCollections( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder builderForValue) { if (collectionsBuilder_ == null) { collections_ = builderForValue.build(); onChanged(); } else { collectionsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder mergeCollections(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (collections_ != null) { collections_ = org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.newBuilder(collections_).mergeFrom(value).buildPartial(); } else { collections_ = value; } onChanged(); } else { collectionsBuilder_.mergeFrom(value); } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public Builder clearCollections() { if (collectionsBuilder_ == null) { collections_ = null; onChanged(); } else { collections_ = null; collectionsBuilder_ = null; } return this; } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder getCollectionsBuilder() { onChanged(); return getCollectionsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collections = 7; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilder(); } else { return collections_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collections_; } } /** * .protos.CollectionConfigPackage collections = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder>( getCollections(), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private boolean initRequired_ ; /** * bool init_required = 8; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } /** * bool init_required = 8; * @param value The initRequired to set. * @return This builder for chaining. */ public Builder setInitRequired(boolean value) { initRequired_ = value; onChanged(); return this; } /** * bool init_required = 8; * @return This builder for chaining. */ public Builder clearInitRequired() { initRequired_ = false; 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:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) } // @@protoc_insertion_point(class_scope:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeDefinition 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int CHAINCODE_DEFINITIONS_FIELD_NUMBER = 1; private java.util.List chaincodeDefinitions_; /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ @java.lang.Override public java.util.List getChaincodeDefinitionsList() { return chaincodeDefinitions_; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ @java.lang.Override public java.util.List getChaincodeDefinitionsOrBuilderList() { return chaincodeDefinitions_; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ @java.lang.Override public int getChaincodeDefinitionsCount() { return chaincodeDefinitions_.size(); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getChaincodeDefinitions(int index) { return chaincodeDefinitions_.get(index); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder getChaincodeDefinitionsOrBuilder( int index) { return chaincodeDefinitions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < chaincodeDefinitions_.size(); i++) { output.writeMessage(1, chaincodeDefinitions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < chaincodeDefinitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, chaincodeDefinitions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult other = (org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult) obj; if (!getChaincodeDefinitionsList() .equals(other.getChaincodeDefinitionsList())) 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 (getChaincodeDefinitionsCount() > 0) { hash = (37 * hash) + CHAINCODE_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getChaincodeDefinitionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult 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; } /** *
     * QueryChaincodeDefinitionsResult is the message returned by
     * `_lifecycle.QueryChaincodeDefinitions`.
     * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryChaincodeDefinitionsResult) org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.class, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (chaincodeDefinitionsBuilder_ == null) { chaincodeDefinitions_ = java.util.Collections.emptyList(); } else { chaincodeDefinitions_ = null; chaincodeDefinitionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult build() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult result = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult(this); int from_bitField0_ = bitField0_; if (chaincodeDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { chaincodeDefinitions_ = java.util.Collections.unmodifiableList(chaincodeDefinitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodeDefinitions_ = chaincodeDefinitions_; } else { result.chaincodeDefinitions_ = chaincodeDefinitionsBuilder_.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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.getDefaultInstance()) return this; if (chaincodeDefinitionsBuilder_ == null) { if (!other.chaincodeDefinitions_.isEmpty()) { if (chaincodeDefinitions_.isEmpty()) { chaincodeDefinitions_ = other.chaincodeDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.addAll(other.chaincodeDefinitions_); } onChanged(); } } else { if (!other.chaincodeDefinitions_.isEmpty()) { if (chaincodeDefinitionsBuilder_.isEmpty()) { chaincodeDefinitionsBuilder_.dispose(); chaincodeDefinitionsBuilder_ = null; chaincodeDefinitions_ = other.chaincodeDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); chaincodeDefinitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChaincodeDefinitionsFieldBuilder() : null; } else { chaincodeDefinitionsBuilder_.addAllMessages(other.chaincodeDefinitions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition m = input.readMessage( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.parser(), extensionRegistry); if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(m); } else { chaincodeDefinitionsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List chaincodeDefinitions_ = java.util.Collections.emptyList(); private void ensureChaincodeDefinitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { chaincodeDefinitions_ = new java.util.ArrayList(chaincodeDefinitions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder> chaincodeDefinitionsBuilder_; /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public java.util.List getChaincodeDefinitionsList() { if (chaincodeDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(chaincodeDefinitions_); } else { return chaincodeDefinitionsBuilder_.getMessageList(); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public int getChaincodeDefinitionsCount() { if (chaincodeDefinitionsBuilder_ == null) { return chaincodeDefinitions_.size(); } else { return chaincodeDefinitionsBuilder_.getCount(); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getChaincodeDefinitions(int index) { if (chaincodeDefinitionsBuilder_ == null) { return chaincodeDefinitions_.get(index); } else { return chaincodeDefinitionsBuilder_.getMessage(index); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder setChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition value) { if (chaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.set(index, value); onChanged(); } else { chaincodeDefinitionsBuilder_.setMessage(index, value); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder setChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder builderForValue) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.set(index, builderForValue.build()); onChanged(); } else { chaincodeDefinitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder addChaincodeDefinitions(org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition value) { if (chaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(value); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(value); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder addChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition value) { if (chaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(index, value); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(index, value); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder addChaincodeDefinitions( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder builderForValue) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(builderForValue.build()); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder addChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder builderForValue) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(index, builderForValue.build()); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder addAllChaincodeDefinitions( java.lang.Iterable values) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chaincodeDefinitions_); onChanged(); } else { chaincodeDefinitionsBuilder_.addAllMessages(values); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder clearChaincodeDefinitions() { if (chaincodeDefinitionsBuilder_ == null) { chaincodeDefinitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { chaincodeDefinitionsBuilder_.clear(); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public Builder removeChaincodeDefinitions(int index) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.remove(index); onChanged(); } else { chaincodeDefinitionsBuilder_.remove(index); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder getChaincodeDefinitionsBuilder( int index) { return getChaincodeDefinitionsFieldBuilder().getBuilder(index); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder getChaincodeDefinitionsOrBuilder( int index) { if (chaincodeDefinitionsBuilder_ == null) { return chaincodeDefinitions_.get(index); } else { return chaincodeDefinitionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public java.util.List getChaincodeDefinitionsOrBuilderList() { if (chaincodeDefinitionsBuilder_ != null) { return chaincodeDefinitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chaincodeDefinitions_); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder addChaincodeDefinitionsBuilder() { return getChaincodeDefinitionsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance()); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder addChaincodeDefinitionsBuilder( int index) { return getChaincodeDefinitionsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance()); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1; */ public java.util.List getChaincodeDefinitionsBuilderList() { return getChaincodeDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder> getChaincodeDefinitionsFieldBuilder() { if (chaincodeDefinitionsBuilder_ == null) { chaincodeDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder>( chaincodeDefinitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); chaincodeDefinitions_ = null; } return chaincodeDefinitionsBuilder_; } @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:lifecycle.QueryChaincodeDefinitionsResult) } // @@protoc_insertion_point(class_scope:lifecycle.QueryChaincodeDefinitionsResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryChaincodeDefinitionsResult 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.lifecycle.Lifecycle.QueryChaincodeDefinitionsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_InstallChaincodeArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_InstallChaincodeArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_InstallChaincodeResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_InstallChaincodeResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodeArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodeArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodeResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodeResult_ReferencesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodeResult_ReferencesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodeResult_References_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodeResult_References_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_GetInstalledChaincodePackageArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_GetInstalledChaincodePackageArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_GetInstalledChaincodePackageResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_GetInstalledChaincodePackageResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodesArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodesArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodesResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_ReferencesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_ReferencesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodesResult_References_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodesResult_References_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_ChaincodeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_ChaincodeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_ChaincodeSource_Unavailable_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_ChaincodeSource_Unavailable_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_ChaincodeSource_Local_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_ChaincodeSource_Local_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_CommitChaincodeDefinitionArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_CommitChaincodeDefinitionArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_CommitChaincodeDefinitionResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_CommitChaincodeDefinitionResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_CheckCommitReadinessArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_CheckCommitReadinessArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_CheckCommitReadinessResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_CheckCommitReadinessResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_CheckCommitReadinessResult_ApprovalsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_CheckCommitReadinessResult_ApprovalsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryChaincodeDefinitionArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryChaincodeDefinitionArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryChaincodeDefinitionResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryChaincodeDefinitionResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryChaincodeDefinitionResult_ApprovalsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryChaincodeDefinitionResult_ApprovalsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryChaincodeDefinitionsArgs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryChaincodeDefinitionsArgs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryChaincodeDefinitionsResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_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\036peer/lifecycle/lifecycle.proto\022\tlifecy" + "cle\032\025peer/collection.proto\"9\n\024InstallCha" + "incodeArgs\022!\n\031chaincode_install_package\030" + "\001 \001(\014\";\n\026InstallChaincodeResult\022\022\n\npacka" + "ge_id\030\001 \001(\t\022\r\n\005label\030\002 \001(\t\"1\n\033QueryInsta" + "lledChaincodeArgs\022\022\n\npackage_id\030\001 \001(\t\"\372\002" + "\n\035QueryInstalledChaincodeResult\022\022\n\npacka" + "ge_id\030\001 \001(\t\022\r\n\005label\030\002 \001(\t\022L\n\nreferences" + "\030\003 \003(\01328.lifecycle.QueryInstalledChainco" + "deResult.ReferencesEntry\032f\n\017ReferencesEn" + "try\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.lifecy" + "cle.QueryInstalledChaincodeResult.Refere" + "nces:\0028\001\032T\n\nReferences\022F\n\nchaincodes\030\001 \003" + "(\01322.lifecycle.QueryInstalledChaincodeRe" + "sult.Chaincode\032*\n\tChaincode\022\014\n\004name\030\001 \001(" + "\t\022\017\n\007version\030\002 \001(\t\"6\n GetInstalledChainc" + "odePackageArgs\022\022\n\npackage_id\030\001 \001(\t\"G\n\"Ge" + "tInstalledChaincodePackageResult\022!\n\031chai" + "ncode_install_package\030\001 \001(\014\"\036\n\034QueryInst" + "alledChaincodesArgs\"\204\004\n\036QueryInstalledCh" + "aincodesResult\022Z\n\024installed_chaincodes\030\001" + " \003(\0132<.lifecycle.QueryInstalledChaincode" + "sResult.InstalledChaincode\032\202\002\n\022Installed" + "Chaincode\022\022\n\npackage_id\030\001 \001(\t\022\r\n\005label\030\002" + " \001(\t\022`\n\nreferences\030\003 \003(\0132L.lifecycle.Que" + "ryInstalledChaincodesResult.InstalledCha" + "incode.ReferencesEntry\032g\n\017ReferencesEntr" + "y\022\013\n\003key\030\001 \001(\t\022C\n\005value\030\002 \001(\01324.lifecycl" + "e.QueryInstalledChaincodesResult.Referen" + "ces:\0028\001\032U\n\nReferences\022G\n\nchaincodes\030\001 \003(" + "\01323.lifecycle.QueryInstalledChaincodesRe" + "sult.Chaincode\032*\n\tChaincode\022\014\n\004name\030\001 \001(" + "\t\022\017\n\007version\030\002 \001(\t\"\247\002\n&ApproveChaincodeD" + "efinitionForMyOrgArgs\022\020\n\010sequence\030\001 \001(\003\022" + "\014\n\004name\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\032\n\022endors" + "ement_plugin\030\004 \001(\t\022\031\n\021validation_plugin\030" + "\005 \001(\t\022\034\n\024validation_parameter\030\006 \001(\014\0224\n\013c" + "ollections\030\007 \001(\0132\037.protos.CollectionConf" + "igPackage\022\025\n\rinit_required\030\010 \001(\010\022*\n\006sour" + "ce\030\t \001(\0132\032.lifecycle.ChaincodeSource\"\277\001\n" + "\017ChaincodeSource\022=\n\013unavailable\030\001 \001(\0132&." + "lifecycle.ChaincodeSource.UnavailableH\000\022" + "9\n\rlocal_package\030\002 \001(\0132 .lifecycle.Chain" + "codeSource.LocalH\000\032\r\n\013Unavailable\032\033\n\005Loc" + "al\022\022\n\npackage_id\030\001 \001(\tB\006\n\004Type\"*\n(Approv" + "eChaincodeDefinitionForMyOrgResult\"\362\001\n\035C" + "ommitChaincodeDefinitionArgs\022\020\n\010sequence" + "\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\032\n" + "\022endorsement_plugin\030\004 \001(\t\022\031\n\021validation_" + "plugin\030\005 \001(\t\022\034\n\024validation_parameter\030\006 \001" + "(\014\0224\n\013collections\030\007 \001(\0132\037.protos.Collect" + "ionConfigPackage\022\025\n\rinit_required\030\010 \001(\010\"" + "!\n\037CommitChaincodeDefinitionResult\"\355\001\n\030C" + "heckCommitReadinessArgs\022\020\n\010sequence\030\001 \001(" + "\003\022\014\n\004name\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\032\n\022endo" + "rsement_plugin\030\004 \001(\t\022\031\n\021validation_plugi" + "n\030\005 \001(\t\022\034\n\024validation_parameter\030\006 \001(\014\0224\n" + "\013collections\030\007 \001(\0132\037.protos.CollectionCo" + "nfigPackage\022\025\n\rinit_required\030\010 \001(\010\"\227\001\n\032C" + "heckCommitReadinessResult\022G\n\tapprovals\030\001" + " \003(\01324.lifecycle.CheckCommitReadinessRes" + "ult.ApprovalsEntry\0320\n\016ApprovalsEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010:\0028\001\",\n\034QueryCha" + "incodeDefinitionArgs\022\014\n\004name\030\001 \001(\t\"\344\002\n\036Q" + "ueryChaincodeDefinitionResult\022\020\n\010sequenc" + "e\030\001 \001(\003\022\017\n\007version\030\002 \001(\t\022\032\n\022endorsement_" + "plugin\030\003 \001(\t\022\031\n\021validation_plugin\030\004 \001(\t\022" + "\034\n\024validation_parameter\030\005 \001(\014\0224\n\013collect" + "ions\030\006 \001(\0132\037.protos.CollectionConfigPack" + "age\022\025\n\rinit_required\030\007 \001(\010\022K\n\tapprovals\030" + "\010 \003(\01328.lifecycle.QueryChaincodeDefiniti" + "onResult.ApprovalsEntry\0320\n\016ApprovalsEntr" + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010:\0028\001\"\037\n\035Que" + "ryChaincodeDefinitionsArgs\"\353\002\n\037QueryChai" + "ncodeDefinitionsResult\022]\n\025chaincode_defi" + "nitions\030\001 \003(\0132>.lifecycle.QueryChaincode" + "DefinitionsResult.ChaincodeDefinition\032\350\001" + "\n\023ChaincodeDefinition\022\014\n\004name\030\001 \001(\t\022\020\n\010s" + "equence\030\002 \001(\003\022\017\n\007version\030\003 \001(\t\022\032\n\022endors" + "ement_plugin\030\004 \001(\t\022\031\n\021validation_plugin\030" + "\005 \001(\t\022\034\n\024validation_parameter\030\006 \001(\014\0224\n\013c" + "ollections\030\007 \001(\0132\037.protos.CollectionConf" + "igPackage\022\025\n\rinit_required\030\010 \001(\010Bf\n,org." + "hyperledger.fabric.protos.peer.lifecycle" + "Z6github.com/hyperledger/fabric-protos-g" + "o/peer/lifecycleb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.peer.Collection.getDescriptor(), }); internal_static_lifecycle_InstallChaincodeArgs_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_lifecycle_InstallChaincodeArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_InstallChaincodeArgs_descriptor, new java.lang.String[] { "ChaincodeInstallPackage", }); internal_static_lifecycle_InstallChaincodeResult_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_lifecycle_InstallChaincodeResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_InstallChaincodeResult_descriptor, new java.lang.String[] { "PackageId", "Label", }); internal_static_lifecycle_QueryInstalledChaincodeArgs_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_lifecycle_QueryInstalledChaincodeArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodeArgs_descriptor, new java.lang.String[] { "PackageId", }); internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_lifecycle_QueryInstalledChaincodeResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor, new java.lang.String[] { "PackageId", "Label", "References", }); internal_static_lifecycle_QueryInstalledChaincodeResult_ReferencesEntry_descriptor = internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor.getNestedTypes().get(0); internal_static_lifecycle_QueryInstalledChaincodeResult_ReferencesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodeResult_ReferencesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_lifecycle_QueryInstalledChaincodeResult_References_descriptor = internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor.getNestedTypes().get(1); internal_static_lifecycle_QueryInstalledChaincodeResult_References_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodeResult_References_descriptor, new java.lang.String[] { "Chaincodes", }); internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_descriptor = internal_static_lifecycle_QueryInstalledChaincodeResult_descriptor.getNestedTypes().get(2); internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodeResult_Chaincode_descriptor, new java.lang.String[] { "Name", "Version", }); internal_static_lifecycle_GetInstalledChaincodePackageArgs_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_lifecycle_GetInstalledChaincodePackageArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_GetInstalledChaincodePackageArgs_descriptor, new java.lang.String[] { "PackageId", }); internal_static_lifecycle_GetInstalledChaincodePackageResult_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_lifecycle_GetInstalledChaincodePackageResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_GetInstalledChaincodePackageResult_descriptor, new java.lang.String[] { "ChaincodeInstallPackage", }); internal_static_lifecycle_QueryInstalledChaincodesArgs_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_lifecycle_QueryInstalledChaincodesArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodesArgs_descriptor, new java.lang.String[] { }); internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_lifecycle_QueryInstalledChaincodesResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor, new java.lang.String[] { "InstalledChaincodes", }); internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_descriptor = internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor.getNestedTypes().get(0); internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_descriptor, new java.lang.String[] { "PackageId", "Label", "References", }); internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_ReferencesEntry_descriptor = internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_descriptor.getNestedTypes().get(0); internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_ReferencesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodesResult_InstalledChaincode_ReferencesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_lifecycle_QueryInstalledChaincodesResult_References_descriptor = internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor.getNestedTypes().get(1); internal_static_lifecycle_QueryInstalledChaincodesResult_References_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodesResult_References_descriptor, new java.lang.String[] { "Chaincodes", }); internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_descriptor = internal_static_lifecycle_QueryInstalledChaincodesResult_descriptor.getNestedTypes().get(2); internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryInstalledChaincodesResult_Chaincode_descriptor, new java.lang.String[] { "Name", "Version", }); internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgArgs_descriptor, new java.lang.String[] { "Sequence", "Name", "Version", "EndorsementPlugin", "ValidationPlugin", "ValidationParameter", "Collections", "InitRequired", "Source", }); internal_static_lifecycle_ChaincodeSource_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_lifecycle_ChaincodeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_ChaincodeSource_descriptor, new java.lang.String[] { "Unavailable", "LocalPackage", "Type", }); internal_static_lifecycle_ChaincodeSource_Unavailable_descriptor = internal_static_lifecycle_ChaincodeSource_descriptor.getNestedTypes().get(0); internal_static_lifecycle_ChaincodeSource_Unavailable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_ChaincodeSource_Unavailable_descriptor, new java.lang.String[] { }); internal_static_lifecycle_ChaincodeSource_Local_descriptor = internal_static_lifecycle_ChaincodeSource_descriptor.getNestedTypes().get(1); internal_static_lifecycle_ChaincodeSource_Local_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_ChaincodeSource_Local_descriptor, new java.lang.String[] { "PackageId", }); internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_ApproveChaincodeDefinitionForMyOrgResult_descriptor, new java.lang.String[] { }); internal_static_lifecycle_CommitChaincodeDefinitionArgs_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_lifecycle_CommitChaincodeDefinitionArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_CommitChaincodeDefinitionArgs_descriptor, new java.lang.String[] { "Sequence", "Name", "Version", "EndorsementPlugin", "ValidationPlugin", "ValidationParameter", "Collections", "InitRequired", }); internal_static_lifecycle_CommitChaincodeDefinitionResult_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_lifecycle_CommitChaincodeDefinitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_CommitChaincodeDefinitionResult_descriptor, new java.lang.String[] { }); internal_static_lifecycle_CheckCommitReadinessArgs_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_lifecycle_CheckCommitReadinessArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_CheckCommitReadinessArgs_descriptor, new java.lang.String[] { "Sequence", "Name", "Version", "EndorsementPlugin", "ValidationPlugin", "ValidationParameter", "Collections", "InitRequired", }); internal_static_lifecycle_CheckCommitReadinessResult_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_lifecycle_CheckCommitReadinessResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_CheckCommitReadinessResult_descriptor, new java.lang.String[] { "Approvals", }); internal_static_lifecycle_CheckCommitReadinessResult_ApprovalsEntry_descriptor = internal_static_lifecycle_CheckCommitReadinessResult_descriptor.getNestedTypes().get(0); internal_static_lifecycle_CheckCommitReadinessResult_ApprovalsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_CheckCommitReadinessResult_ApprovalsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_lifecycle_QueryChaincodeDefinitionArgs_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_lifecycle_QueryChaincodeDefinitionArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryChaincodeDefinitionArgs_descriptor, new java.lang.String[] { "Name", }); internal_static_lifecycle_QueryChaincodeDefinitionResult_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_lifecycle_QueryChaincodeDefinitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryChaincodeDefinitionResult_descriptor, new java.lang.String[] { "Sequence", "Version", "EndorsementPlugin", "ValidationPlugin", "ValidationParameter", "Collections", "InitRequired", "Approvals", }); internal_static_lifecycle_QueryChaincodeDefinitionResult_ApprovalsEntry_descriptor = internal_static_lifecycle_QueryChaincodeDefinitionResult_descriptor.getNestedTypes().get(0); internal_static_lifecycle_QueryChaincodeDefinitionResult_ApprovalsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryChaincodeDefinitionResult_ApprovalsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_lifecycle_QueryChaincodeDefinitionsArgs_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_lifecycle_QueryChaincodeDefinitionsArgs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryChaincodeDefinitionsArgs_descriptor, new java.lang.String[] { }); internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_lifecycle_QueryChaincodeDefinitionsResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor, new java.lang.String[] { "ChaincodeDefinitions", }); internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor = internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor.getNestedTypes().get(0); internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor, new java.lang.String[] { "Name", "Sequence", "Version", "EndorsementPlugin", "ValidationPlugin", "ValidationParameter", "Collections", "InitRequired", }); org.hyperledger.fabric.protos.peer.Collection.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy