@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> * The display name for the node. * </pre> * * <code>string display_name = 3;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.spanner.v1.PlanNode.getDescriptor().getEnumTypes().get(0); }
public Builder mergeFrom(com.google.spanner.v1.PlanNode other) { if (other == com.google.spanner.v1.PlanNode.getDefaultInstance()) return this; if (other.getIndex() != 0) { setIndex(other.getIndex()); setKindValue(other.getKindValue()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); if (other.hasShortRepresentation()) { mergeShortRepresentation(other.getShortRepresentation()); if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); if (other.hasExecutionStats()) { mergeExecutionStats(other.getExecutionStats());
@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 com.google.spanner.v1.PlanNode getDefaultInstanceForType() { return com.google.spanner.v1.PlanNode.getDefaultInstance(); }
/** * * * <pre> * The execution statistics associated with the node, contained in a group of * key-value pairs. Only present if the plan was returned as a result of a * profile query. For example, number of executions, number of rows/time per * execution etc. * </pre> * * <code>.google.protobuf.Struct execution_stats = 7;</code> */ public com.google.protobuf.StructOrBuilder getExecutionStatsOrBuilder() { return getExecutionStats(); }
@java.lang.Override public com.google.spanner.v1.PlanNode buildPartial() { com.google.spanner.v1.PlanNode result = new com.google.spanner.v1.PlanNode(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
@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; }
/** * * * <pre> * The nodes in the query plan. Plan nodes are returned in pre-order starting * with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in * `plan_nodes`. * </pre> * * <code>repeated .google.spanner.v1.PlanNode plan_nodes = 1;</code> */ public com.google.spanner.v1.PlanNode.Builder addPlanNodesBuilder(int index) { return getPlanNodesFieldBuilder() .addBuilder(index, com.google.spanner.v1.PlanNode.getDefaultInstance()); } /**
hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + kind_; hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); if (getChildLinksCount() > 0) { hash = (37 * hash) + CHILD_LINKS_FIELD_NUMBER; hash = (53 * hash) + getChildLinksList().hashCode(); if (hasShortRepresentation()) { hash = (37 * hash) + SHORT_REPRESENTATION_FIELD_NUMBER; hash = (53 * hash) + getShortRepresentation().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); if (hasExecutionStats()) { hash = (37 * hash) + EXECUTION_STATS_FIELD_NUMBER; hash = (53 * hash) + getExecutionStats().hashCode();
/** * * * <pre> * The nodes in the query plan. Plan nodes are returned in pre-order starting * with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in * `plan_nodes`. * </pre> * * <code>repeated .google.spanner.v1.PlanNode plan_nodes = 1;</code> */ public com.google.spanner.v1.PlanNode.Builder addPlanNodesBuilder() { return getPlanNodesFieldBuilder() .addBuilder(com.google.spanner.v1.PlanNode.getDefaultInstance()); } /**