public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo other) { if (other == org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); if (!other.getInput().isEmpty()) { input_ = other.input_; onChanged(); if (!other.getEscc().isEmpty()) { escc_ = other.escc_; onChanged(); if (!other.getVscc().isEmpty()) { vscc_ = other.vscc_; onChanged(); if (other.getId() != com.google.protobuf.ByteString.EMPTY) { setId(other.getId());
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); hash = (37 * hash) + ESCC_FIELD_NUMBER; hash = (53 * hash) + getEscc().hashCode(); hash = (37 * hash) + VSCC_FIELD_NUMBER; hash = (53 * hash) + getVscc().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (!getPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } if (!getInputBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, input_); } if (!getEsccBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, escc_); } if (!getVsccBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vscc_); } if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, id_); } memoizedSize = size; return size; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo other) { if (other == org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); if (!other.getInput().isEmpty()) { input_ = other.input_; onChanged(); if (!other.getEscc().isEmpty()) { escc_ = other.escc_; onChanged(); if (!other.getVscc().isEmpty()) { vscc_ = other.vscc_; onChanged(); if (other.getId() != com.google.protobuf.ByteString.EMPTY) { setId(other.getId());
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (!getPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } if (!getInputBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, input_); } if (!getEsccBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, escc_); } if (!getVsccBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vscc_); } if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, id_); } memoizedSize = size; return size; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo other) { if (other == org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); if (!other.getInput().isEmpty()) { input_ = other.input_; onChanged(); if (!other.getEscc().isEmpty()) { escc_ = other.escc_; onChanged(); if (!other.getVscc().isEmpty()) { vscc_ = other.vscc_; onChanged(); if (other.getId() != com.google.protobuf.ByteString.EMPTY) { setId(other.getId());
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (!getPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } if (!getInputBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, input_); } if (!getEsccBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, escc_); } if (!getVsccBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vscc_); } if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, id_); } memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } if (!getPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } if (!getInputBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, input_); } if (!getEsccBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, escc_); } if (!getVsccBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vscc_); } if (!id_.isEmpty()) { output.writeBytes(7, id_); } }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); hash = (37 * hash) + ESCC_FIELD_NUMBER; hash = (53 * hash) + getEscc().hashCode(); hash = (37 * hash) + VSCC_FIELD_NUMBER; hash = (53 * hash) + getVscc().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo other = (org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getVersion() .equals(other.getVersion()); result = result && getPath() .equals(other.getPath()); result = result && getInput() .equals(other.getInput()); result = result && getEscc() .equals(other.getEscc()); result = result && getVscc() .equals(other.getVscc()); result = result && getId() .equals(other.getId()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo other = (org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getVersion() .equals(other.getVersion()); result = result && getPath() .equals(other.getPath()); result = result && getInput() .equals(other.getInput()); result = result && getEscc() .equals(other.getEscc()); result = result && getVscc() .equals(other.getVscc()); result = result && getId() .equals(other.getId()); return result; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } if (!getPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } if (!getInputBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, input_); } if (!getEsccBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, escc_); } if (!getVsccBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vscc_); } if (!id_.isEmpty()) { output.writeBytes(7, id_); } }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); hash = (37 * hash) + ESCC_FIELD_NUMBER; hash = (53 * hash) + getEscc().hashCode(); hash = (37 * hash) + VSCC_FIELD_NUMBER; hash = (53 * hash) + getVscc().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * the chaincode unique id. * computed as: H( * H(name || version) || * H(CodePackage) * ) * </pre> * * <code>optional bytes id = 7;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * the chaincode unique id. * computed as: H( * H(name || version) || * H(CodePackage) * ) * </pre> * * <code>optional bytes id = 7;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * the name of the VSCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string vscc = 6;</code> */ public Builder clearVscc() { vscc_ = getDefaultInstance().getVscc(); onChanged(); return this; } /**
public org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo.getDefaultInstance(); }
/** * <pre> * the chaincode function upon instantiation and its arguments. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string input = 4;</code> */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); onChanged(); return this; } /**
/** * <pre> * the chaincode function upon instantiation and its arguments. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string input = 4;</code> */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); onChanged(); return this; } /**
/** * <pre> * the name of the VSCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string vscc = 6;</code> */ public Builder clearVscc() { vscc_ = getDefaultInstance().getVscc(); onChanged(); return this; } /**