@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getStringValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringValue_); } if (boolValue_ != false) { output.writeBool(2, boolValue_); } if (intValue_ != 0) { output.writeSInt32(3, intValue_); } for (int i = 0; i < stringArrayValues_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stringArrayValues_.getRaw(i)); } if (getIntArrayValuesList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(intArrayValuesMemoizedSerializedSize); } for (int i = 0; i < intArrayValues_.size(); i++) { output.writeSInt32NoTag(intArrayValues_.get(i)); } if (type_ != org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument.ArgumentType.STRING.getNumber()) { output.writeEnum(6, type_); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getStringValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringValue_); } if (boolValue_ != false) { output.writeBool(2, boolValue_); } if (intValue_ != 0) { output.writeSInt32(3, intValue_); } for (int i = 0; i < stringArrayValues_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stringArrayValues_.getRaw(i)); } if (getIntArrayValuesList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(intArrayValuesMemoizedSerializedSize); } for (int i = 0; i < intArrayValues_.size(); i++) { output.writeSInt32NoTag(intArrayValues_.get(i)); } if (type_ != org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument.ArgumentType.STRING.getNumber()) { output.writeEnum(6, type_); } unknownFields.writeTo(output); }
if (!getIntArrayValuesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream
if (!getIntArrayValuesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream
int[] arr = new int[arg.getIntArrayValuesCount()]; int offset = 0; for (Integer val : arg.getIntArrayValuesList()) { arr[offset] = val; offset++;
int[] arr = new int[arg.getIntArrayValuesCount()]; int offset = 0; for (Integer val : arg.getIntArrayValuesList()) { arr[offset] = val; offset++;
if (!getIntArrayValuesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream
int[] arr = new int[arg.getIntArrayValuesCount()]; int offset = 0; for (Integer val : arg.getIntArrayValuesList()) { arr[offset] = val; offset++;
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBoolValue()); hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getIntValue(); if (getStringArrayValuesCount() > 0) { hash = (37 * hash) + STRING_ARRAY_VALUES_FIELD_NUMBER; hash = (53 * hash) + getStringArrayValuesList().hashCode(); } if (getIntArrayValuesCount() > 0) { hash = (37 * hash) + INT_ARRAY_VALUES_FIELD_NUMBER; hash = (53 * hash) + getIntArrayValuesList().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBoolValue()); hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getIntValue(); if (getStringArrayValuesCount() > 0) { hash = (37 * hash) + STRING_ARRAY_VALUES_FIELD_NUMBER; hash = (53 * hash) + getStringArrayValuesList().hashCode(); } if (getIntArrayValuesCount() > 0) { hash = (37 * hash) + INT_ARRAY_VALUES_FIELD_NUMBER; hash = (53 * hash) + getIntArrayValuesList().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; 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.apache.calcite.avatica.proto.Common.MetaDataOperationArgument)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument other = (org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument) obj; boolean result = true; result = result && getStringValue() .equals(other.getStringValue()); result = result && (getBoolValue() == other.getBoolValue()); result = result && (getIntValue() == other.getIntValue()); result = result && getStringArrayValuesList() .equals(other.getStringArrayValuesList()); result = result && getIntArrayValuesList() .equals(other.getIntArrayValuesList()); result = result && type_ == other.type_; result = result && unknownFields.equals(other.unknownFields); return result; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getStringValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, stringValue_); } if (boolValue_ != false) { output.writeBool(2, boolValue_); } if (intValue_ != 0) { output.writeSInt32(3, intValue_); } for (int i = 0; i < stringArrayValues_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 4, stringArrayValues_.getRaw(i)); } if (getIntArrayValuesList().size() > 0) { output.writeRawVarint32(42); output.writeRawVarint32(intArrayValuesMemoizedSerializedSize); } for (int i = 0; i < intArrayValues_.size(); i++) { output.writeSInt32NoTag(intArrayValues_.get(i)); } if (type_ != org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument.ArgumentType.STRING.getNumber()) { output.writeEnum(6, type_); } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument other = (org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument) obj; boolean result = true; result = result && getStringValue() .equals(other.getStringValue()); result = result && (getBoolValue() == other.getBoolValue()); result = result && (getIntValue() == other.getIntValue()); result = result && getStringArrayValuesList() .equals(other.getStringArrayValuesList()); result = result && getIntArrayValuesList() .equals(other.getIntArrayValuesList()); result = result && type_ == other.type_; result = result && unknownFields.equals(other.unknownFields); return result; }