/** * * * <pre> * Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes. * </pre> * * <code>.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;</code> */ public com.google.spanner.v1.PlanNode.ShortRepresentationOrBuilder getShortRepresentationOrBuilder() { return getShortRepresentation(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (index_ != 0) { output.writeInt32(1, index_); } if (kind_ != com.google.spanner.v1.PlanNode.Kind.KIND_UNSPECIFIED.getNumber()) { output.writeEnum(2, kind_); } if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } for (int i = 0; i < childLinks_.size(); i++) { output.writeMessage(4, childLinks_.get(i)); } if (shortRepresentation_ != null) { output.writeMessage(5, getShortRepresentation()); } if (metadata_ != null) { output.writeMessage(6, getMetadata()); } if (executionStats_ != null) { output.writeMessage(7, getExecutionStats()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, index_); } if (kind_ != com.google.spanner.v1.PlanNode.Kind.KIND_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, kind_); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } for (int i = 0; i < childLinks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, childLinks_.get(i)); } if (shortRepresentation_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getShortRepresentation()); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); } if (executionStats_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExecutionStats()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
hash = (53 * hash) + getShortRepresentation().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.PlanNode)) { return super.equals(obj); } com.google.spanner.v1.PlanNode other = (com.google.spanner.v1.PlanNode) obj; boolean result = true; result = result && (getIndex() == other.getIndex()); result = result && kind_ == other.kind_; result = result && getDisplayName().equals(other.getDisplayName()); result = result && getChildLinksList().equals(other.getChildLinksList()); result = result && (hasShortRepresentation() == other.hasShortRepresentation()); if (hasShortRepresentation()) { result = result && getShortRepresentation().equals(other.getShortRepresentation()); } result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasExecutionStats() == other.hasExecutionStats()); if (hasExecutionStats()) { result = result && getExecutionStats().equals(other.getExecutionStats()); } result = result && unknownFields.equals(other.unknownFields); return result; }
mergeShortRepresentation(other.getShortRepresentation());