@java.lang.Override public org.apache.calcite.avatica.proto.Common.DatabaseProperty buildPartial() { org.apache.calcite.avatica.proto.Common.DatabaseProperty result = new org.apache.calcite.avatica.proto.Common.DatabaseProperty(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (((bitField0_ & 0x00000002) == 0x00000002)) { functions_ = functions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.functions_ = functions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < functions_.size(); i++) { dataSize += computeStringSizeNoTag(functions_.getRaw(i)); } size += dataSize; size += 1 * getFunctionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); key_ = input.readMessage(org.apache.calcite.avatica.proto.Common.DatabaseProperty.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_);
org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); key_ = input.readMessage(org.apache.calcite.avatica.proto.Common.DatabaseProperty.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_);
org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); key_ = input.readMessage(org.apache.calcite.avatica.proto.Common.DatabaseProperty.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_);
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
functions_ = functions_.getUnmodifiableView(); makeExtensionsImmutable();
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>.DatabaseProperty key = 1;</code> */ public Builder mergeKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = org.apache.calcite.avatica.proto.Common.DatabaseProperty.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
/** * <code>optional .DatabaseProperty key = 1;</code> */ public Builder mergeKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = org.apache.calcite.avatica.proto.Common.DatabaseProperty.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } onChanged(); return this; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < functions_.size(); i++) { dataSize += computeStringSizeNoTag(functions_.getRaw(i)); } size += dataSize; size += 1 * getFunctionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * <code>.DatabaseProperty key = 1;</code> */ public Builder mergeKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = org.apache.calcite.avatica.proto.Common.DatabaseProperty.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } 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.DatabaseProperty)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.DatabaseProperty other = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getFunctionsList() .equals(other.getFunctionsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < functions_.size(); i++) { dataSize += computeStringSizeNoTag(functions_.getRaw(i)); } size += dataSize; size += 1 * getFunctionsList().size(); } memoizedSize = size; return size; }
@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.DatabaseProperty)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.DatabaseProperty other = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getFunctionsList() .equals(other.getFunctionsList()); result = result && unknownFields.equals(other.unknownFields); return result; }