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; * @return The chaincodeDeploymentSpec. */ 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; * @return The instantiationPolicy. */ 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignedChaincodeDeploymentSpec(); } @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.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); } 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; * @return The chaincodeDeploymentSpec. */ @java.lang.Override 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; * @return The instantiationPolicy. */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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)); } getUnknownFields().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 += 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.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 (!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_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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @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(); } else { ownerEndorsements_ = null; ownerEndorsementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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_; result.chaincodeDeploymentSpec_ = chaincodeDeploymentSpec_; result.instantiationPolicy_ = instantiationPolicy_; if (ownerEndorsementsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ownerEndorsements_ = java.util.Collections.unmodifiableList(ownerEndorsements_); bitField0_ = (bitField0_ & ~0x00000001); } result.ownerEndorsements_ = ownerEndorsements_; } else { result.ownerEndorsements_ = ownerEndorsementsBuilder_.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.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_ & ~0x00000001); } else { ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.addAll(other.ownerEndorsements_); } onChanged(); } } else { if (!other.ownerEndorsements_.isEmpty()) { if (ownerEndorsementsBuilder_.isEmpty()) { ownerEndorsementsBuilder_.dispose(); ownerEndorsementsBuilder_ = null; ownerEndorsements_ = other.ownerEndorsements_; bitField0_ = (bitField0_ & ~0x00000001); ownerEndorsementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOwnerEndorsementsFieldBuilder() : null; } else { ownerEndorsementsBuilder_.addAllMessages(other.ownerEndorsements_); } } } 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: { chaincodeDeploymentSpec_ = input.readBytes(); break; } // case 10 case 18: { instantiationPolicy_ = input.readBytes(); break; } // case 18 case 26: { org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement m = input.readMessage( org.hyperledger.fabric.protos.peer.ProposalResponsePackage.Endorsement.parser(), extensionRegistry); if (ownerEndorsementsBuilder_ == null) { ensureOwnerEndorsementsIsMutable(); ownerEndorsements_.add(m); } else { ownerEndorsementsBuilder_.addMessage(m); } 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 com.google.protobuf.ByteString chaincodeDeploymentSpec_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This is the bytes of the ChaincodeDeploymentSpec
       * 
* * bytes chaincode_deployment_spec = 1; * @return The chaincodeDeploymentSpec. */ @java.lang.Override public com.google.protobuf.ByteString getChaincodeDeploymentSpec() { return chaincodeDeploymentSpec_; } /** *
       * This is the bytes of the ChaincodeDeploymentSpec
       * 
* * bytes chaincode_deployment_spec = 1; * @param value The chaincodeDeploymentSpec to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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; * @return The instantiationPolicy. */ @java.lang.Override 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; * @param value The instantiationPolicy to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearInstantiationPolicy() { instantiationPolicy_ = getDefaultInstance().getInstantiationPolicy(); onChanged(); return this; } private java.util.List ownerEndorsements_ = java.util.Collections.emptyList(); private void ensureOwnerEndorsementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ownerEndorsements_ = new java.util.ArrayList(ownerEndorsements_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 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 { 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.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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.peer.ProposalResponsePackage.getDescriptor(), }); 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