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

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

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

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * SignedChaincodeDeploymentSpec carries the CDS along with endorsements
 * 
* * Protobuf type {@code protos.SignedChaincodeDeploymentSpec} */ public final class SignedChaincodeDeploymentSpec extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.SignedChaincodeDeploymentSpec) SignedChaincodeDeploymentSpecOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", SignedChaincodeDeploymentSpec.class.getName()); } // Use SignedChaincodeDeploymentSpec.newBuilder() to construct. private SignedChaincodeDeploymentSpec(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SignedChaincodeDeploymentSpec() { chaincodeDeploymentSpec_ = com.google.protobuf.ByteString.EMPTY; instantiationPolicy_ = com.google.protobuf.ByteString.EMPTY; ownerEndorsements_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpecProto.internal_static_protos_SignedChaincodeDeploymentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpecProto.internal_static_protos_SignedChaincodeDeploymentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec.class, org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec.Builder.class); } public static final int CHAINCODE_DEPLOYMENT_SPEC_FIELD_NUMBER = 1; private com.google.protobuf.ByteString chaincodeDeploymentSpec_ = com.google.protobuf.ByteString.EMPTY; /** *
   * This is the bytes of the ChaincodeDeploymentSpec
   * 
* * bytes chaincode_deployment_spec = 1 [json_name = "chaincodeDeploymentSpec"]; * @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_ = 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 [json_name = "instantiationPolicy"]; * @return The instantiationPolicy. */ @java.lang.Override public com.google.protobuf.ByteString getInstantiationPolicy() { return instantiationPolicy_; } public static final int OWNER_ENDORSEMENTS_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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 [json_name = "ownerEndorsements"]; */ @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 [json_name = "ownerEndorsements"]; */ @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 [json_name = "ownerEndorsements"]; */ @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 [json_name = "ownerEndorsements"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.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.SignedChaincodeDeploymentSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec other = (org.hyperledger.fabric.protos.peer.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.SignedChaincodeDeploymentSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.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.SignedChaincodeDeploymentSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.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.SignedChaincodeDeploymentSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.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.SignedChaincodeDeploymentSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.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.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.SignedChaincodeDeploymentSpec) org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpecProto.internal_static_protos_SignedChaincodeDeploymentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpecProto.internal_static_protos_SignedChaincodeDeploymentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec.class, org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.SignedCcDepSpecProto.internal_static_protos_SignedChaincodeDeploymentSpec_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec build() { org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec buildPartial() { org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec result = new org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec result) { if (ownerEndorsementsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { ownerEndorsements_ = java.util.Collections.unmodifiableList(ownerEndorsements_); bitField0_ = (bitField0_ & ~0x00000004); } result.ownerEndorsements_ = ownerEndorsements_; } else { result.ownerEndorsements_ = ownerEndorsementsBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.chaincodeDeploymentSpec_ = chaincodeDeploymentSpec_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.instantiationPolicy_ = instantiationPolicy_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec) { return mergeFrom((org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec other) { if (other == org.hyperledger.fabric.protos.peer.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.GeneratedMessage.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(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { instantiationPolicy_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { org.hyperledger.fabric.protos.peer.Endorsement m = input.readMessage( org.hyperledger.fabric.protos.peer.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 [json_name = "chaincodeDeploymentSpec"]; * @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 [json_name = "chaincodeDeploymentSpec"]; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * This is the bytes of the ChaincodeDeploymentSpec
     * 
* * bytes chaincode_deployment_spec = 1 [json_name = "chaincodeDeploymentSpec"]; * @return This builder for chaining. */ public Builder clearChaincodeDeploymentSpec() { bitField0_ = (bitField0_ & ~0x00000001); 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 [json_name = "instantiationPolicy"]; * @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 [json_name = "instantiationPolicy"]; * @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; bitField0_ |= 0x00000002; 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 [json_name = "instantiationPolicy"]; * @return This builder for chaining. */ public Builder clearInstantiationPolicy() { bitField0_ = (bitField0_ & ~0x00000002); 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.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.Endorsement, org.hyperledger.fabric.protos.peer.Endorsement.Builder, org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ 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 [json_name = "ownerEndorsements"]; */ 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 [json_name = "ownerEndorsements"]; */ public org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public Builder setOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public Builder setOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public Builder addOwnerEndorsements(org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public Builder addOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public Builder addOwnerEndorsements( org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public Builder addOwnerEndorsements( int index, org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ 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 [json_name = "ownerEndorsements"]; */ 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 [json_name = "ownerEndorsements"]; */ 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 [json_name = "ownerEndorsements"]; */ public org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ 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 [json_name = "ownerEndorsements"]; */ public org.hyperledger.fabric.protos.peer.Endorsement.Builder addOwnerEndorsementsBuilder() { return getOwnerEndorsementsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public org.hyperledger.fabric.protos.peer.Endorsement.Builder addOwnerEndorsementsBuilder( int index) { return getOwnerEndorsementsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.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 [json_name = "ownerEndorsements"]; */ public java.util.List getOwnerEndorsementsBuilderList() { return getOwnerEndorsementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.Endorsement, org.hyperledger.fabric.protos.peer.Endorsement.Builder, org.hyperledger.fabric.protos.peer.EndorsementOrBuilder> getOwnerEndorsementsFieldBuilder() { if (ownerEndorsementsBuilder_ == null) { ownerEndorsementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.Endorsement, org.hyperledger.fabric.protos.peer.Endorsement.Builder, org.hyperledger.fabric.protos.peer.EndorsementOrBuilder>( ownerEndorsements_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); ownerEndorsements_ = null; } return ownerEndorsementsBuilder_; } // @@protoc_insertion_point(builder_scope:protos.SignedChaincodeDeploymentSpec) } // @@protoc_insertion_point(class_scope:protos.SignedChaincodeDeploymentSpec) private static final org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.SignedChaincodeDeploymentSpec(); } public static org.hyperledger.fabric.protos.peer.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.SignedChaincodeDeploymentSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy