@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage) obj; boolean result = true; result = result && getType() .equals(other.getType()); result = result && getPath() .equals(other.getPath()); result = result && getCodePackage() .equals(other.getCodePackage()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (other.getCodePackage() != com.google.protobuf.ByteString.EMPTY) { setCodePackage(other.getCodePackage()); } onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + CODE_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getCodePackage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (!getPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } 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.Chaincode.ChaincodeInstallPackage)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage) obj; boolean result = true; result = result && getType() .equals(other.getType()); result = result && getPath() .equals(other.getPath()); result = result && getCodePackage() .equals(other.getCodePackage()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + CODE_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getCodePackage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage.getDefaultInstance(); }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (other.getCodePackage() != com.google.protobuf.ByteString.EMPTY) { setCodePackage(other.getCodePackage()); } onChanged(); return this; }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage build() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>optional bytes code_package = 3;</code> */ public Builder clearCodePackage() { codePackage_ = getDefaultInstance().getCodePackage(); onChanged(); return this; } public final Builder setUnknownFields(
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage buildPartial() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage result = new org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage(this); result.type_ = type_; result.path_ = path_; result.codePackage_ = codePackage_; onBuilt(); return result; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (!getPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } }
/** * <code>optional string path = 2;</code> */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); onChanged(); return this; } /**
/** * <code>optional string type = 1;</code> */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (!getPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } memoizedSize = size; return size; }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage.getDefaultInstance(); }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage buildPartial() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage result = new org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage(this); result.type_ = type_; result.path_ = path_; result.codePackage_ = codePackage_; onBuilt(); return result; }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage build() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInstallPackage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }