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

org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult Maven / Gradle / Ivy

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

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

/**
 * 
 * QueryApprovedChaincodeDefinitionResult is the message returned by
 * `_lifecycle.QueryApprovedChaincodeDefinition`.
 * 
* * Protobuf type {@code lifecycle.QueryApprovedChaincodeDefinitionResult} */ public final class QueryApprovedChaincodeDefinitionResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:lifecycle.QueryApprovedChaincodeDefinitionResult) QueryApprovedChaincodeDefinitionResultOrBuilder { 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= */ "", QueryApprovedChaincodeDefinitionResult.class.getName()); } // Use QueryApprovedChaincodeDefinitionResult.newBuilder() to construct. private QueryApprovedChaincodeDefinitionResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private QueryApprovedChaincodeDefinitionResult() { version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult.Builder.class); } private int bitField0_; public static final int SEQUENCE_FIELD_NUMBER = 1; private long sequence_ = 0L; /** * int64 sequence = 1 [json_name = "sequence"]; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int VERSION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * string version = 2 [json_name = "version"]; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** * string version = 2 [json_name = "version"]; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENDORSEMENT_PLUGIN_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 3 [json_name = "endorsementPlugin"]; * @return The endorsementPlugin. */ @java.lang.Override public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } } /** * string endorsement_plugin = 3 [json_name = "endorsementPlugin"]; * @return The bytes for endorsementPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PLUGIN_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 4 [json_name = "validationPlugin"]; * @return The validationPlugin. */ @java.lang.Override public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } } /** * string validation_plugin = 4 [json_name = "validationPlugin"]; * @return The bytes for validationPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PARAMETER_FIELD_NUMBER = 5; private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 5 [json_name = "validationParameter"]; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } public static final int COLLECTIONS_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.peer.CollectionConfigPackage collections_; /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; * @return Whether the collections field is set. */ @java.lang.Override public boolean hasCollections() { return ((bitField0_ & 0x00000001) != 0); } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; * @return The collections. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.CollectionConfigPackage getCollections() { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } public static final int INIT_REQUIRED_FIELD_NUMBER = 7; private boolean initRequired_ = false; /** * bool init_required = 7 [json_name = "initRequired"]; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } public static final int SOURCE_FIELD_NUMBER = 8; private org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource source_; /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000002) != 0); } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; * @return The source. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource getSource() { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder() { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sequence_ != 0L) { output.writeInt64(1, sequence_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endorsementPlugin_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationPlugin_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, validationPlugin_); } if (!validationParameter_.isEmpty()) { output.writeBytes(5, validationParameter_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getCollections()); } if (initRequired_ != false) { output.writeBool(7, initRequired_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getSource()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, sequence_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endorsementPlugin_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationPlugin_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, validationPlugin_); } if (!validationParameter_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, validationParameter_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCollections()); } if (initRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, initRequired_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getSource()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult other = (org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult) obj; if (getSequence() != other.getSequence()) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEndorsementPlugin() .equals(other.getEndorsementPlugin())) return false; if (!getValidationPlugin() .equals(other.getValidationPlugin())) return false; if (!getValidationParameter() .equals(other.getValidationParameter())) return false; if (hasCollections() != other.hasCollections()) return false; if (hasCollections()) { if (!getCollections() .equals(other.getCollections())) return false; } if (getInitRequired() != other.getInitRequired()) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + ENDORSEMENT_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getValidationPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getValidationParameter().hashCode(); if (hasCollections()) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollections().hashCode(); } hash = (37 * hash) + INIT_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitRequired()); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult 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.lifecycle.QueryApprovedChaincodeDefinitionResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult 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.lifecycle.QueryApprovedChaincodeDefinitionResult 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.lifecycle.QueryApprovedChaincodeDefinitionResult 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.lifecycle.QueryApprovedChaincodeDefinitionResult 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; } /** *
   * QueryApprovedChaincodeDefinitionResult is the message returned by
   * `_lifecycle.QueryApprovedChaincodeDefinition`.
   * 
* * Protobuf type {@code lifecycle.QueryApprovedChaincodeDefinitionResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryApprovedChaincodeDefinitionResult) org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getCollectionsFieldBuilder(); getSourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sequence_ = 0L; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; collections_ = null; if (collectionsBuilder_ != null) { collectionsBuilder_.dispose(); collectionsBuilder_ = null; } initRequired_ = false; source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult build() { org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult result = new org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sequence_ = sequence_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endorsementPlugin_ = endorsementPlugin_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.validationPlugin_ = validationPlugin_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.validationParameter_ = validationParameter_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.collections_ = collectionsBuilder_ == null ? collections_ : collectionsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.initRequired_ = initRequired_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult.getDefaultInstance()) return this; if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getEndorsementPlugin().isEmpty()) { endorsementPlugin_ = other.endorsementPlugin_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getValidationPlugin().isEmpty()) { validationPlugin_ = other.validationPlugin_; bitField0_ |= 0x00000008; onChanged(); } if (other.getValidationParameter() != com.google.protobuf.ByteString.EMPTY) { setValidationParameter(other.getValidationParameter()); } if (other.hasCollections()) { mergeCollections(other.getCollections()); } if (other.getInitRequired() != false) { setInitRequired(other.getInitRequired()); } if (other.hasSource()) { mergeSource(other.getSource()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { sequence_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { endorsementPlugin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { validationPlugin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { validationParameter_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getCollectionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 56: { initRequired_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { input.readMessage( getSourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long sequence_ ; /** * int64 sequence = 1 [json_name = "sequence"]; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * int64 sequence = 1 [json_name = "sequence"]; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 sequence = 1 [json_name = "sequence"]; * @return This builder for chaining. */ public Builder clearSequence() { bitField0_ = (bitField0_ & ~0x00000001); sequence_ = 0L; onChanged(); return this; } private java.lang.Object version_ = ""; /** * string version = 2 [json_name = "version"]; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * string version = 2 [json_name = "version"]; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string version = 2 [json_name = "version"]; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string version = 2 [json_name = "version"]; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string version = 2 [json_name = "version"]; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 3 [json_name = "endorsementPlugin"]; * @return The endorsementPlugin. */ public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endorsement_plugin = 3 [json_name = "endorsementPlugin"]; * @return The bytes for endorsementPlugin. */ public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endorsement_plugin = 3 [json_name = "endorsementPlugin"]; * @param value The endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPlugin_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string endorsement_plugin = 3 [json_name = "endorsementPlugin"]; * @return This builder for chaining. */ public Builder clearEndorsementPlugin() { endorsementPlugin_ = getDefaultInstance().getEndorsementPlugin(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string endorsement_plugin = 3 [json_name = "endorsementPlugin"]; * @param value The bytes for endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPlugin_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 4 [json_name = "validationPlugin"]; * @return The validationPlugin. */ public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validation_plugin = 4 [json_name = "validationPlugin"]; * @return The bytes for validationPlugin. */ public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validation_plugin = 4 [json_name = "validationPlugin"]; * @param value The validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validationPlugin_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string validation_plugin = 4 [json_name = "validationPlugin"]; * @return This builder for chaining. */ public Builder clearValidationPlugin() { validationPlugin_ = getDefaultInstance().getValidationPlugin(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string validation_plugin = 4 [json_name = "validationPlugin"]; * @param value The bytes for validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validationPlugin_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 5 [json_name = "validationParameter"]; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } /** * bytes validation_parameter = 5 [json_name = "validationParameter"]; * @param value The validationParameter to set. * @return This builder for chaining. */ public Builder setValidationParameter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validationParameter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes validation_parameter = 5 [json_name = "validationParameter"]; * @return This builder for chaining. */ public Builder clearValidationParameter() { bitField0_ = (bitField0_ & ~0x00000010); validationParameter_ = getDefaultInstance().getValidationParameter(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.CollectionConfigPackage collections_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder> collectionsBuilder_; /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; * @return Whether the collections field is set. */ public boolean hasCollections() { return ((bitField0_ & 0x00000020) != 0); } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; * @return The collections. */ public org.hyperledger.fabric.protos.peer.CollectionConfigPackage getCollections() { if (collectionsBuilder_ == null) { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } else { return collectionsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ public Builder setCollections(org.hyperledger.fabric.protos.peer.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collections_ = value; } else { collectionsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ public Builder setCollections( org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder builderForValue) { if (collectionsBuilder_ == null) { collections_ = builderForValue.build(); } else { collectionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ public Builder mergeCollections(org.hyperledger.fabric.protos.peer.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && collections_ != null && collections_ != org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance()) { getCollectionsBuilder().mergeFrom(value); } else { collections_ = value; } } else { collectionsBuilder_.mergeFrom(value); } if (collections_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ public Builder clearCollections() { bitField0_ = (bitField0_ & ~0x00000020); collections_ = null; if (collectionsBuilder_ != null) { collectionsBuilder_.dispose(); collectionsBuilder_ = null; } onChanged(); return this; } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ public org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder getCollectionsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getCollectionsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ public org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilder(); } else { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } } /** * .protos.CollectionConfigPackage collections = 6 [json_name = "collections"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder>( getCollections(), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private boolean initRequired_ ; /** * bool init_required = 7 [json_name = "initRequired"]; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } /** * bool init_required = 7 [json_name = "initRequired"]; * @param value The initRequired to set. * @return This builder for chaining. */ public Builder setInitRequired(boolean value) { initRequired_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bool init_required = 7 [json_name = "initRequired"]; * @return This builder for chaining. */ public Builder clearInitRequired() { bitField0_ = (bitField0_ & ~0x00000040); initRequired_ = false; onChanged(); return this; } private org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource source_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder> sourceBuilder_; /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000080) != 0); } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; * @return The source. */ public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ public Builder setSource(org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ public Builder setSource( org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ public Builder mergeSource(org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && source_ != null && source_ != org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance()) { getSourceBuilder().mergeFrom(value); } else { source_ = value; } } else { sourceBuilder_.mergeFrom(value); } if (source_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000080); source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } onChanged(); return this; } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder getSourceBuilder() { bitField0_ |= 0x00000080; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } } /** * .lifecycle.ChaincodeSource source = 8 [json_name = "source"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } // @@protoc_insertion_point(builder_scope:lifecycle.QueryApprovedChaincodeDefinitionResult) } // @@protoc_insertion_point(class_scope:lifecycle.QueryApprovedChaincodeDefinitionResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryApprovedChaincodeDefinitionResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy