public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getSignatureBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, functionType_.getNumber()); } for (int i = 0; i < parameterTypes_.size(); i++) { output.writeMessage(3, parameterTypes_.get(i)); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getSignatureBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, functionType_.getNumber()); } for (int i = 0; i < parameterTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, parameterTypes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
this.mergeUnknownFields(other.getUnknownFields()); return this;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.catalog.proto.CatalogProtos.ContainFunctionRequest)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.ContainFunctionRequest other = (org.apache.tajo.catalog.proto.CatalogProtos.ContainFunctionRequest) obj; boolean result = true; result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { result = result && getSignature() .equals(other.getSignature()); } result = result && (hasFunctionType() == other.hasFunctionType()); if (hasFunctionType()) { result = result && (getFunctionType() == other.getFunctionType()); } result = result && getParameterTypesList() .equals(other.getParameterTypesList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSignature()) { hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); } if (hasFunctionType()) { hash = (37 * hash) + FUNCTIONTYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getFunctionType()); } if (getParameterTypesCount() > 0) { hash = (37 * hash) + PARAMETERTYPES_FIELD_NUMBER; hash = (53 * hash) + getParameterTypesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }