@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasClassName()) { hash = (37 * hash) + CLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getClassName().hashCode(); } if (hasMethodName()) { hash = (37 * hash) + METHODNAME_FIELD_NUMBER; hash = (53 * hash) + getMethodName().hashCode(); } if (hasReturnClass()) { hash = (37 * hash) + RETURNCLASS_FIELD_NUMBER; hash = (53 * hash) + getReturnClass().hashCode(); } if (getParamClassesCount() > 0) { hash = (37 * hash) + PARAMCLASSES_FIELD_NUMBER; hash = (53 * hash) + getParamClassesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getClassNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getMethodNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getReturnClassBytes()); } { int dataSize = 0; for (int i = 0; i < paramClasses_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(paramClasses_.getByteString(i)); } size += dataSize; size += 1 * getParamClassesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
scalar_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance(); } else { scalarBuilder_.clear(); scalarJIT_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance(); } else { scalarJITBuilder_.clear();
result = result && (hasClassName() == other.hasClassName()); if (hasClassName()) { result = result && getClassName() .equals(other.getClassName()); result = result && (hasMethodName() == other.hasMethodName()); if (hasMethodName()) { result = result && getMethodName() .equals(other.getMethodName()); result = result && (hasReturnClass() == other.hasReturnClass()); if (hasReturnClass()) { result = result && getReturnClass() .equals(other.getReturnClass()); result = result && getParamClassesList() .equals(other.getParamClassesList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result;
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance()) return this; if (other.hasClassName()) { bitField0_ |= 0x00000001; className_ = other.className_; onChanged(); } if (other.hasMethodName()) { bitField0_ |= 0x00000002; methodName_ = other.methodName_; onChanged(); } if (other.hasReturnClass()) { bitField0_ |= 0x00000004; returnClass_ = other.returnClass_; onChanged(); } if (!other.paramClasses_.isEmpty()) { if (paramClasses_.isEmpty()) { paramClasses_ = other.paramClasses_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureParamClassesIsMutable(); paramClasses_.addAll(other.paramClasses_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto buildPartial() { org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto result = new org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.className_ = className_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.methodName_ = methodName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.returnClass_ = returnClass_; if (((bitField0_ & 0x00000008) == 0x00000008)) { paramClasses_ = new com.google.protobuf.UnmodifiableLazyStringList( paramClasses_); bitField0_ = (bitField0_ & ~0x00000008); } result.paramClasses_ = paramClasses_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>optional .StaticMethodInvocationDescProto scalarJIT = 4;</code> */ public Builder mergeScalarJIT(org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto value) { if (scalarJITBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && scalarJIT_ != org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance()) { scalarJIT_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.newBuilder(scalarJIT_).mergeFrom(value).buildPartial(); } else { scalarJIT_ = value; } onChanged(); } else { scalarJITBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .StaticMethodInvocationDescProto scalar = 2;</code> */ public Builder mergeScalar(org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto value) { if (scalarBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && scalar_ != org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance()) { scalar_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.newBuilder(scalar_).mergeFrom(value).buildPartial(); } else { scalar_ = value; } onChanged(); } else { scalarBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getClassNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getMethodNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getReturnClassBytes()); } for (int i = 0; i < paramClasses_.size(); i++) { output.writeBytes(4, paramClasses_.getByteString(i)); } getUnknownFields().writeTo(output); }
/** * <code>optional .StaticMethodInvocationDescProto scalarJIT = 4;</code> */ public Builder clearScalarJIT() { if (scalarJITBuilder_ == null) { scalarJIT_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance(); onChanged(); } else { scalarJITBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
public org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto getDefaultInstanceForType() { return org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance(); }
private void initFields() { legacy_ = org.apache.tajo.catalog.proto.CatalogProtos.ClassBaseInvocationDescProto.getDefaultInstance(); scalar_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance(); aggregation_ = org.apache.tajo.catalog.proto.CatalogProtos.ClassBaseInvocationDescProto.getDefaultInstance(); scalarJIT_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance(); aggregationJIT_ = org.apache.tajo.catalog.proto.CatalogProtos.ClassBaseInvocationDescProto.getDefaultInstance(); python_ = org.apache.tajo.catalog.proto.CatalogProtos.PythonInvocationDescProto.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
/** * <code>optional .StaticMethodInvocationDescProto scalar = 2;</code> */ public Builder clearScalar() { if (scalarBuilder_ == null) { scalar_ = org.apache.tajo.catalog.proto.CatalogProtos.StaticMethodInvocationDescProto.getDefaultInstance(); onChanged(); } else { scalarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
/** * <code>required string className = 1;</code> */ public Builder clearClassName() { bitField0_ = (bitField0_ & ~0x00000001); className_ = getDefaultInstance().getClassName(); onChanged(); return this; } /**
public StaticMethodInvocationDesc(StaticMethodInvocationDescProto proto) { try { baseClassName = Class.forName(proto.getClassName()); methodName = proto.getMethodName(); returnClass = ClassUtil.forName(proto.getReturnClass()); paramClasses = new Class[proto.getParamClassesCount()]; for (int i = 0; i < proto.getParamClassesCount(); i++) { paramClasses[i] = ClassUtil.forName(proto.getParamClasses(i)); } } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }
/** * <code>required string methodName = 2;</code> */ public Builder clearMethodName() { bitField0_ = (bitField0_ & ~0x00000002); methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /**
public StaticMethodInvocationDesc(StaticMethodInvocationDescProto proto) { try { baseClassName = Class.forName(proto.getClassName()); methodName = proto.getMethodName(); returnClass = ClassUtil.forName(proto.getReturnClass()); paramClasses = new Class[proto.getParamClassesCount()]; for (int i = 0; i < proto.getParamClassesCount(); i++) { paramClasses[i] = ClassUtil.forName(proto.getParamClasses(i)); } } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }
/** * <code>required string returnClass = 3;</code> */ public Builder clearReturnClass() { bitField0_ = (bitField0_ & ~0x00000004); returnClass_ = getDefaultInstance().getReturnClass(); onChanged(); return this; } /**