public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getFuncNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFilePathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isScalarFunction_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFuncNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFilePathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, isScalarFunction_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFuncName()) { hash = (37 * hash) + FUNCNAME_FIELD_NUMBER; hash = (53 * hash) + getFuncName().hashCode(); } if (hasFilePath()) { hash = (37 * hash) + FILEPATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); } if (hasIsScalarFunction()) { hash = (37 * hash) + ISSCALARFUNCTION_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getIsScalarFunction()); } hash = (29 * hash) + getUnknownFields().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.apache.tajo.catalog.proto.CatalogProtos.PythonInvocationDescProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.PythonInvocationDescProto other = (org.apache.tajo.catalog.proto.CatalogProtos.PythonInvocationDescProto) obj; boolean result = true; result = result && (hasFuncName() == other.hasFuncName()); if (hasFuncName()) { result = result && getFuncName() .equals(other.getFuncName()); } result = result && (hasFilePath() == other.hasFilePath()); if (hasFilePath()) { result = result && getFilePath() .equals(other.getFilePath()); } result = result && (hasIsScalarFunction() == other.hasIsScalarFunction()); if (hasIsScalarFunction()) { result = result && (getIsScalarFunction() == other.getIsScalarFunction()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.PythonInvocationDescProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.PythonInvocationDescProto.getDefaultInstance()) return this; if (other.hasFuncName()) { bitField0_ |= 0x00000001; funcName_ = other.funcName_; onChanged(); } if (other.hasFilePath()) { bitField0_ |= 0x00000002; filePath_ = other.filePath_; onChanged(); } if (other.hasIsScalarFunction()) { setIsScalarFunction(other.getIsScalarFunction()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }