/** * * * <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() { if (shortRepresentationBuilder_ != null) { return shortRepresentationBuilder_.getMessageOrBuilder(); } else { return shortRepresentation_ == null ? com.google.spanner.v1.PlanNode.ShortRepresentation.getDefaultInstance() : shortRepresentation_; } } /**
@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; }
@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; }
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; }
/** * * * <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); }
/** * * * <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> * 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.ShortRepresentation getShortRepresentation() { if (shortRepresentationBuilder_ == null) { return shortRepresentation_ == null ? com.google.spanner.v1.PlanNode.ShortRepresentation.getDefaultInstance() : shortRepresentation_; } else { return shortRepresentationBuilder_.getMessage(); } } /**
/** * * * <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 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; }
/** * * * <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.ShortRepresentation getShortRepresentation() { return shortRepresentation_ == null ? com.google.spanner.v1.PlanNode.ShortRepresentation.getDefaultInstance() : shortRepresentation_; } /**
/** * * * <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(); } /**
/** * * * <pre> * A string representation of the expression subtree rooted at this node. * </pre> * * <code>string description = 1;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
public int getSubqueriesCount() { return internalGetSubqueries().getMap().size(); } /**
@java.lang.Override public com.google.spanner.v1.PlanNode.ShortRepresentation buildPartial() { com.google.spanner.v1.PlanNode.ShortRepresentation result = new com.google.spanner.v1.PlanNode.ShortRepresentation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.description_ = description_; result.subqueries_ = internalGetSubqueries(); result.subqueries_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public com.google.spanner.v1.PlanNode.ShortRepresentation getDefaultInstanceForType() { return com.google.spanner.v1.PlanNode.ShortRepresentation.getDefaultInstance(); }
@java.lang.Override public com.google.spanner.v1.PlanNode.ShortRepresentation build() { com.google.spanner.v1.PlanNode.ShortRepresentation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** Use {@link #getSubqueriesMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Integer> getSubqueries() { return getSubqueriesMap(); } /**
@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); }
public Builder mergeFrom(com.google.spanner.v1.PlanNode.ShortRepresentation other) { if (other == com.google.spanner.v1.PlanNode.ShortRepresentation.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableSubqueries().mergeFrom(other.internalGetSubqueries()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }