@java.lang.Override public org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument buildPartial() { org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument result = new org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.stringValue_ = stringValue_; result.boolValue_ = boolValue_; result.intValue_ = intValue_; if (((bitField0_ & 0x00000008) == 0x00000008)) { stringArrayValues_ = stringArrayValues_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.stringArrayValues_ = stringArrayValues_; if (((bitField0_ & 0x00000010) == 0x00000010)) { intArrayValues_ = java.util.Collections.unmodifiableList(intArrayValues_); bitField0_ = (bitField0_ & ~0x00000010); } result.intArrayValues_ = intArrayValues_; result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
if (!getStringValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stringValue_); dataSize += computeStringSizeNoTag(stringArrayValues_.getRaw(i)); size += 1 * getStringArrayValuesList().size(); if (!getIntArrayValuesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream
@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; }
if (!getStringValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stringValue_); dataSize += computeStringSizeNoTag(stringArrayValues_.getRaw(i)); size += 1 * getStringArrayValuesList().size(); if (!getIntArrayValuesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream
int i = 0; for (Common.MetaDataOperationArgument arg : protoState.getArgsList()) { switch (arg.getType()) { case STRING: opArgs[i] = arg.getStringValue(); break; case BOOL: opArgs[i] = arg.getBoolValue(); break; case INT: opArgs[i] = arg.getIntValue(); break; case REPEATED_STRING: opArgs[i] = arg.getStringArrayValuesList().toArray( new String[arg.getStringArrayValuesCount()]); break; case REPEATED_INT: int[] arr = new int[arg.getIntArrayValuesCount()]; int offset = 0; for (Integer val : arg.getIntArrayValuesList()) { arr[offset] = val; offset++; break; default: throw new RuntimeException("Could not interpret " + arg.getType());
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument other) { if (other == org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument.getDefaultInstance()) return this; if (!other.getStringValue().isEmpty()) { stringValue_ = other.stringValue_; onChanged(); if (other.getBoolValue() != false) { setBoolValue(other.getBoolValue()); if (other.getIntValue() != 0) { setIntValue(other.getIntValue()); setTypeValue(other.getTypeValue());
int i = 0; for (Common.MetaDataOperationArgument arg : protoState.getArgsList()) { switch (arg.getType()) { case STRING: opArgs[i] = arg.getStringValue(); break; case BOOL: opArgs[i] = arg.getBoolValue(); break; case INT: opArgs[i] = arg.getIntValue(); break; case REPEATED_STRING: opArgs[i] = arg.getStringArrayValuesList().toArray( new String[arg.getStringArrayValuesCount()]); break; case REPEATED_INT: int[] arr = new int[arg.getIntArrayValuesCount()]; int offset = 0; for (Integer val : arg.getIntArrayValuesList()) { arr[offset] = val; offset++; break; default: throw new RuntimeException("Could not interpret " + arg.getType());
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument other) { if (other == org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument.getDefaultInstance()) return this; if (!other.getStringValue().isEmpty()) { stringValue_ = other.stringValue_; onChanged(); if (other.getBoolValue() != false) { setBoolValue(other.getBoolValue()); if (other.getIntValue() != 0) { setIntValue(other.getIntValue()); setTypeValue(other.getTypeValue());
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument other) { if (other == org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument.getDefaultInstance()) return this; if (!other.getStringValue().isEmpty()) { stringValue_ = other.stringValue_; onChanged(); if (other.getBoolValue() != false) { setBoolValue(other.getBoolValue()); if (other.getIntValue() != 0) { setIntValue(other.getIntValue()); setTypeValue(other.getTypeValue());
if (!getStringValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, stringValue_); dataSize += computeStringSizeNoTag(stringArrayValues_.getRaw(i)); size += 1 * getStringArrayValuesList().size(); if (!getIntArrayValuesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream
int i = 0; for (Common.MetaDataOperationArgument arg : protoState.getArgsList()) { switch (arg.getType()) { case STRING: opArgs[i] = arg.getStringValue(); break; case BOOL: opArgs[i] = arg.getBoolValue(); break; case INT: opArgs[i] = arg.getIntValue(); break; case REPEATED_STRING: opArgs[i] = arg.getStringArrayValuesList().toArray( new String[arg.getStringArrayValuesCount()]); break; case REPEATED_INT: int[] arr = new int[arg.getIntArrayValuesCount()]; int offset = 0; for (Integer val : arg.getIntArrayValuesList()) { arr[offset] = val; offset++; break; default: throw new RuntimeException("Could not interpret " + arg.getType());
@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); }
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; }
@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 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 org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument buildPartial() { org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument result = new org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.stringValue_ = stringValue_; result.boolValue_ = boolValue_; result.intValue_ = intValue_; if (((bitField0_ & 0x00000008) == 0x00000008)) { stringArrayValues_ = stringArrayValues_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.stringArrayValues_ = stringArrayValues_; if (((bitField0_ & 0x00000010) == 0x00000010)) { intArrayValues_ = java.util.Collections.unmodifiableList(intArrayValues_); bitField0_ = (bitField0_ & ~0x00000010); } result.intArrayValues_ = intArrayValues_; result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@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 org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument buildPartial() { org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument result = new org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.stringValue_ = stringValue_; result.boolValue_ = boolValue_; result.intValue_ = intValue_; if (((bitField0_ & 0x00000008) == 0x00000008)) { stringArrayValues_ = stringArrayValues_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.stringArrayValues_ = stringArrayValues_; if (((bitField0_ & 0x00000010) == 0x00000010)) { intArrayValues_ = java.util.Collections.unmodifiableList(intArrayValues_); bitField0_ = (bitField0_ & ~0x00000010); } result.intArrayValues_ = intArrayValues_; result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.MetaDataOperationArgument.getDefaultInstance(); }