/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public int getSubqueriesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetSubqueries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
@SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetSubqueries(); default: throw new RuntimeException("Invalid map field number: " + number); } }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSubqueries(), SubqueriesDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } for (java.util.Map.Entry<java.lang.String, java.lang.Integer> entry : internalGetSubqueries().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> subqueries__ = SubqueriesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, subqueries__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public int getSubqueriesOrDefault(java.lang.String key, int defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetSubqueries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public boolean containsSubqueries(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSubqueries().getMap().containsKey(key); } /** Use {@link #getSubqueriesMap()} instead. */
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetSubqueries().getMap().isEmpty()) { hash = (37 * hash) + SUBQUERIES_FIELD_NUMBER; hash = (53 * hash) + internalGetSubqueries().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public java.util.Map<java.lang.String, java.lang.Integer> getSubqueriesMap() { return internalGetSubqueries().getMap(); } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.PlanNode.ShortRepresentation)) { return super.equals(obj); } com.google.spanner.v1.PlanNode.ShortRepresentation other = (com.google.spanner.v1.PlanNode.ShortRepresentation) obj; boolean result = true; result = result && getDescription().equals(other.getDescription()); result = result && internalGetSubqueries().equals(other.internalGetSubqueries()); result = result && unknownFields.equals(other.unknownFields); return result; }
public int getSubqueriesCount() { return internalGetSubqueries().getMap().size(); } /**