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

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

package org.hyperledger.fabric.protos.peer;

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

    /**
     * 
     * This is the bytes of the ChaincodeDeploymentSpec
     * 
* * bytes chaincode_deployment_spec = 1; */ com.google.protobuf.ByteString getChaincodeDeploymentSpec(); /** *
     * This is the instantiation policy which is identical in structure
     * to endorsement policy.  This policy is checked by the VSCC at commit
     * time on the instantiation (all peers will get the same policy as it
     * will be part of the LSCC instantation record and will be part of the
     * hash as well)
     * 
* * bytes instantiation_policy = 2; */ com.google.protobuf.ByteString getInstantiationPolicy(); /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ java.util.List getOwnerEndorsementsList(); /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement getOwnerEndorsements(int index); /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ int getOwnerEndorsementsCount(); /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ java.util.List getOwnerEndorsementsOrBuilderList(); /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ org.hyperledger.fabric.protos.peer.ProposalResponsePackage.EndorsementOrBuilder getOwnerEndorsementsOrBuilder( int index); } /** *
   * SignedChaincodeDeploymentSpec carries the CDS along with endorsements
   * 
* * Protobuf type {@code protos.SignedChaincodeDeploymentSpec} */ public static final class SignedChaincodeDeploymentSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.SignedChaincodeDeploymentSpec) SignedChaincodeDeploymentSpecOrBuilder { private static final long serialVersionUID = 0L; // Use SignedChaincodeDeploymentSpec.newBuilder() to construct. private SignedChaincodeDeploymentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignedChaincodeDeploymentSpec() { chaincodeDeploymentSpec_ = com.google.protobuf.ByteString.EMPTY; instantiationPolicy_ = com.google.protobuf.ByteString.EMPTY; ownerEndorsements_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SignedChaincodeDeploymentSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { chaincodeDeploymentSpec_ = input.readBytes(); break; } case 18: { instantiationPolicy_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { ownerEndorsements_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } ownerEndorsements_.add( input.readMessage(org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { ownerEndorsements_ = java.util.Collections.unmodifiableList(ownerEndorsements_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpec.internal_static_protos_SignedChaincodeDeploymentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpec.internal_static_protos_SignedChaincodeDeploymentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec.class, org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec.Builder.class); } private int bitField0_; public static final int CHAINCODE_DEPLOYMENT_SPEC_FIELD_NUMBER = 1; private com.google.protobuf.ByteString chaincodeDeploymentSpec_; /** *
     * This is the bytes of the ChaincodeDeploymentSpec
     * 
* * bytes chaincode_deployment_spec = 1; */ public com.google.protobuf.ByteString getChaincodeDeploymentSpec() { return chaincodeDeploymentSpec_; } public static final int INSTANTIATION_POLICY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString instantiationPolicy_; /** *
     * This is the instantiation policy which is identical in structure
     * to endorsement policy.  This policy is checked by the VSCC at commit
     * time on the instantiation (all peers will get the same policy as it
     * will be part of the LSCC instantation record and will be part of the
     * hash as well)
     * 
* * bytes instantiation_policy = 2; */ public com.google.protobuf.ByteString getInstantiationPolicy() { return instantiationPolicy_; } public static final int OWNER_ENDORSEMENTS_FIELD_NUMBER = 3; private java.util.List ownerEndorsements_; /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public java.util.List getOwnerEndorsementsList() { return ownerEndorsements_; } /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public java.util.List getOwnerEndorsementsOrBuilderList() { return ownerEndorsements_; } /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public int getOwnerEndorsementsCount() { return ownerEndorsements_.size(); } /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement getOwnerEndorsements(int index) { return ownerEndorsements_.get(index); } /** *
     * The endorsements of the above deployment spec, the owner's signature over
     * chaincode_deployment_spec and Endorsement.endorser.
     * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public org.hyperledger.fabric.protos.peer.ProposalResponsePackage.EndorsementOrBuilder getOwnerEndorsementsOrBuilder( int index) { return ownerEndorsements_.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 { if (!chaincodeDeploymentSpec_.isEmpty()) { output.writeBytes(1, chaincodeDeploymentSpec_); } if (!instantiationPolicy_.isEmpty()) { output.writeBytes(2, instantiationPolicy_); } for (int i = 0; i < ownerEndorsements_.size(); i++) { output.writeMessage(3, ownerEndorsements_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!chaincodeDeploymentSpec_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, chaincodeDeploymentSpec_); } if (!instantiationPolicy_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, instantiationPolicy_); } for (int i = 0; i < ownerEndorsements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, ownerEndorsements_.get(i)); } size += unknownFields.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.SignedCcDepSpec.SignedChaincodeDeploymentSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec other = (org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec) obj; if (!getChaincodeDeploymentSpec() .equals(other.getChaincodeDeploymentSpec())) return false; if (!getInstantiationPolicy() .equals(other.getInstantiationPolicy())) return false; if (!getOwnerEndorsementsList() .equals(other.getOwnerEndorsementsList())) return false; if (!unknownFields.equals(other.unknownFields)) 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_DEPLOYMENT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getChaincodeDeploymentSpec().hashCode(); hash = (37 * hash) + INSTANTIATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getInstantiationPolicy().hashCode(); if (getOwnerEndorsementsCount() > 0) { hash = (37 * hash) + OWNER_ENDORSEMENTS_FIELD_NUMBER; hash = (53 * hash) + getOwnerEndorsementsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec 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; } /** *
     * SignedChaincodeDeploymentSpec carries the CDS along with endorsements
     * 
* * Protobuf type {@code protos.SignedChaincodeDeploymentSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.SignedChaincodeDeploymentSpec) org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpec.internal_static_protos_SignedChaincodeDeploymentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpec.internal_static_protos_SignedChaincodeDeploymentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec.class, org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOwnerEndorsementsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); chaincodeDeploymentSpec_ = com.google.protobuf.ByteString.EMPTY; instantiationPolicy_ = com.google.protobuf.ByteString.EMPTY; if (ownerEndorsementsBuilder_ == null) { ownerEndorsements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { ownerEndorsementsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpec.internal_static_protos_SignedChaincodeDeploymentSpec_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec build() { org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec buildPartial() { org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec result = new org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.chaincodeDeploymentSpec_ = chaincodeDeploymentSpec_; result.instantiationPolicy_ = instantiationPolicy_; if (ownerEndorsementsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { ownerEndorsements_ = java.util.Collections.unmodifiableList(ownerEndorsements_); bitField0_ = (bitField0_ & ~0x00000004); } result.ownerEndorsements_ = ownerEndorsements_; } else { result.ownerEndorsements_ = ownerEndorsementsBuilder_.build(); } result.bitField0_ = to_bitField0_; 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec) { return mergeFrom((org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec other) { if (other == org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec.getDefaultInstance()) return this; if (other.getChaincodeDeploymentSpec() != com.google.protobuf.ByteString.EMPTY) { setChaincodeDeploymentSpec(other.getChaincodeDeploymentSpec()); } if (other.getInstantiationPolicy() != com.google.protobuf.ByteString.EMPTY) { setInstantiationPolicy(other.getInstantiationPolicy()); } if (ownerEndorsementsBuilder_ == null) { if (!other.ownerEndorsements_.isEmpty()) { if (ownerEndorsements_.isEmpty()) { ownerEndorsements_ = other.ownerEndorsements_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.addAll(other.ownerEndorsements_); } onChanged(); } } else { if (!other.ownerEndorsements_.isEmpty()) { if (ownerEndorsementsBuilder_.isEmpty()) { ownerEndorsementsBuilder_.dispose(); ownerEndorsementsBuilder_ = null; ownerEndorsements_ = other.ownerEndorsements_; bitField0_ = (bitField0_ & ~0x00000004); ownerEndorsementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOwnerEndorsementsFieldBuilder() : null; } else { ownerEndorsementsBuilder_.addAllMessages(other.ownerEndorsements_); } } } this.mergeUnknownFields(other.unknownFields); 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 { org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString chaincodeDeploymentSpec_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This is the bytes of the ChaincodeDeploymentSpec
       * 
* * bytes chaincode_deployment_spec = 1; */ public com.google.protobuf.ByteString getChaincodeDeploymentSpec() { return chaincodeDeploymentSpec_; } /** *
       * This is the bytes of the ChaincodeDeploymentSpec
       * 
* * bytes chaincode_deployment_spec = 1; */ public Builder setChaincodeDeploymentSpec(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } chaincodeDeploymentSpec_ = value; onChanged(); return this; } /** *
       * This is the bytes of the ChaincodeDeploymentSpec
       * 
* * bytes chaincode_deployment_spec = 1; */ public Builder clearChaincodeDeploymentSpec() { chaincodeDeploymentSpec_ = getDefaultInstance().getChaincodeDeploymentSpec(); onChanged(); return this; } private com.google.protobuf.ByteString instantiationPolicy_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This is the instantiation policy which is identical in structure
       * to endorsement policy.  This policy is checked by the VSCC at commit
       * time on the instantiation (all peers will get the same policy as it
       * will be part of the LSCC instantation record and will be part of the
       * hash as well)
       * 
* * bytes instantiation_policy = 2; */ public com.google.protobuf.ByteString getInstantiationPolicy() { return instantiationPolicy_; } /** *
       * This is the instantiation policy which is identical in structure
       * to endorsement policy.  This policy is checked by the VSCC at commit
       * time on the instantiation (all peers will get the same policy as it
       * will be part of the LSCC instantation record and will be part of the
       * hash as well)
       * 
* * bytes instantiation_policy = 2; */ public Builder setInstantiationPolicy(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } instantiationPolicy_ = value; onChanged(); return this; } /** *
       * This is the instantiation policy which is identical in structure
       * to endorsement policy.  This policy is checked by the VSCC at commit
       * time on the instantiation (all peers will get the same policy as it
       * will be part of the LSCC instantation record and will be part of the
       * hash as well)
       * 
* * bytes instantiation_policy = 2; */ public Builder clearInstantiationPolicy() { instantiationPolicy_ = getDefaultInstance().getInstantiationPolicy(); onChanged(); return this; } private java.util.List ownerEndorsements_ = java.util.Collections.emptyList(); private void ensureOwnerEndorsementsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { ownerEndorsements_ = new java.util.ArrayList(ownerEndorsements_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.EndorsementOrBuilder> ownerEndorsementsBuilder_; /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public java.util.List getOwnerEndorsementsList() { if (ownerEndorsementsBuilder_ == null) { return java.util.Collections.unmodifiableList(ownerEndorsements_); } else { return ownerEndorsementsBuilder_.getMessageList(); } } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public int getOwnerEndorsementsCount() { if (ownerEndorsementsBuilder_ == null) { return ownerEndorsements_.size(); } else { return ownerEndorsementsBuilder_.getCount(); } } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement getOwnerEndorsements(int index) { if (ownerEndorsementsBuilder_ == null) { return ownerEndorsements_.get(index); } else { return ownerEndorsementsBuilder_.getMessage(index); } } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder setOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement value) { if (ownerEndorsementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.set(index, value); onChanged(); } else { ownerEndorsementsBuilder_.setMessage(index, value); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder setOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder builderForValue) { if (ownerEndorsementsBuilder_ == null) { ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.set(index, builderForValue.build()); onChanged(); } else { ownerEndorsementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder addOwnerEndorsements(org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement value) { if (ownerEndorsementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.add(value); onChanged(); } else { ownerEndorsementsBuilder_.addMessage(value); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder addOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement value) { if (ownerEndorsementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.add(index, value); onChanged(); } else { ownerEndorsementsBuilder_.addMessage(index, value); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder addOwnerEndorsements( org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder builderForValue) { if (ownerEndorsementsBuilder_ == null) { ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.add(builderForValue.build()); onChanged(); } else { ownerEndorsementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder addOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder builderForValue) { if (ownerEndorsementsBuilder_ == null) { ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.add(index, builderForValue.build()); onChanged(); } else { ownerEndorsementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder addAllOwnerEndorsements( java.lang.Iterable values) { if (ownerEndorsementsBuilder_ == null) { ensureOwnerEndorsementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ownerEndorsements_); onChanged(); } else { ownerEndorsementsBuilder_.addAllMessages(values); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder clearOwnerEndorsements() { if (ownerEndorsementsBuilder_ == null) { ownerEndorsements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { ownerEndorsementsBuilder_.clear(); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public Builder removeOwnerEndorsements(int index) { if (ownerEndorsementsBuilder_ == null) { ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.remove(index); onChanged(); } else { ownerEndorsementsBuilder_.remove(index); } return this; } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder getOwnerEndorsementsBuilder( int index) { return getOwnerEndorsementsFieldBuilder().getBuilder(index); } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public org.hyperledger.fabric.protos.peer.ProposalResponsePackage.EndorsementOrBuilder getOwnerEndorsementsOrBuilder( int index) { if (ownerEndorsementsBuilder_ == null) { return ownerEndorsements_.get(index); } else { return ownerEndorsementsBuilder_.getMessageOrBuilder(index); } } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public java.util.List getOwnerEndorsementsOrBuilderList() { if (ownerEndorsementsBuilder_ != null) { return ownerEndorsementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ownerEndorsements_); } } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder addOwnerEndorsementsBuilder() { return getOwnerEndorsementsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.getDefaultInstance()); } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder addOwnerEndorsementsBuilder( int index) { return getOwnerEndorsementsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.getDefaultInstance()); } /** *
       * The endorsements of the above deployment spec, the owner's signature over
       * chaincode_deployment_spec and Endorsement.endorser.
       * 
* * repeated .protos.Endorsement owner_endorsements = 3; */ public java.util.List getOwnerEndorsementsBuilderList() { return getOwnerEndorsementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.EndorsementOrBuilder> getOwnerEndorsementsFieldBuilder() { if (ownerEndorsementsBuilder_ == null) { ownerEndorsementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.Builder, org.hyperledger.fabric.protos.peer.ProposalResponsePackage.EndorsementOrBuilder>( ownerEndorsements_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); ownerEndorsements_ = null; } return ownerEndorsementsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protos.SignedChaincodeDeploymentSpec) } // @@protoc_insertion_point(class_scope:protos.SignedChaincodeDeploymentSpec) private static final org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec(); } public static org.hyperledger.fabric.protos.peer.SignedCcDepSpec.SignedChaincodeDeploymentSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SignedChaincodeDeploymentSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignedChaincodeDeploymentSpec(input, extensionRegistry); } }; 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.SignedCcDepSpec.SignedChaincodeDeploymentSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_SignedChaincodeDeploymentSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_SignedChaincodeDeploymentSpec_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\035peer/signed_cc_dep_spec.proto\022\006protos\032" + "\034peer/proposal_response.proto\"\221\001\n\035Signed" + "ChaincodeDeploymentSpec\022!\n\031chaincode_dep" + "loyment_spec\030\001 \001(\014\022\034\n\024instantiation_poli" + "cy\030\002 \001(\014\022/\n\022owner_endorsements\030\003 \003(\0132\023.p" + "rotos.EndorsementBR\n\"org.hyperledger.fab" + "ric.protos.peerZ,github.com/hyperledger/" + "fabric-protos-go/peerb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.peer.ProposalResponsePackage.getDescriptor(), }, assigner); internal_static_protos_SignedChaincodeDeploymentSpec_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protos_SignedChaincodeDeploymentSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_SignedChaincodeDeploymentSpec_descriptor, new java.lang.String[] { "ChaincodeDeploymentSpec", "InstantiationPolicy", "OwnerEndorsements", }); org.hyperledger.fabric.protos.peer.ProposalResponsePackage.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy