/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder addChildLinks(com.google.spanner.v1.PlanNode.ChildLink value) { if (childLinksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildLinksIsMutable(); childLinks_.add(value); onChanged(); } else { childLinksBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public com.google.spanner.v1.PlanNode.ChildLink.Builder addChildLinksBuilder(int index) { return getChildLinksFieldBuilder() .addBuilder(index, com.google.spanner.v1.PlanNode.ChildLink.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.Struct.Builder getExecutionStatsBuilder() { onChanged(); return getExecutionStatsFieldBuilder().getBuilder(); } /**
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()); onChanged(); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureChildLinksIsMutable(); childLinks_.addAll(other.childLinks_); onChanged(); childLinksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChildLinksFieldBuilder() : null; } else { mergeShortRepresentation(other.getShortRepresentation()); mergeMetadata(other.getMetadata()); mergeExecutionStats(other.getExecutionStats()); this.mergeUnknownFields(other.unknownFields); onChanged();
/** * * * <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> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getExecutionStatsFieldBuilder() { if (executionStatsBuilder_ == null) { executionStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getExecutionStats(), getParentForChildren(), isClean()); executionStats_ = null; } return executionStatsBuilder_; }
com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null;
/** * * * <pre> * Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes. * </pre> * * <code>.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.spanner.v1.PlanNode.ShortRepresentation, com.google.spanner.v1.PlanNode.ShortRepresentation.Builder, com.google.spanner.v1.PlanNode.ShortRepresentationOrBuilder> getShortRepresentationFieldBuilder() { if (shortRepresentationBuilder_ == null) { shortRepresentationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.spanner.v1.PlanNode.ShortRepresentation, com.google.spanner.v1.PlanNode.ShortRepresentation.Builder, com.google.spanner.v1.PlanNode.ShortRepresentationOrBuilder>( getShortRepresentation(), getParentForChildren(), isClean()); shortRepresentation_ = null; } return shortRepresentationBuilder_; }
/** * * * <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 Builder addPlanNodes(int index, com.google.spanner.v1.PlanNode.Builder builderForValue) { if (planNodesBuilder_ == null) { ensurePlanNodesIsMutable(); planNodes_.add(index, builderForValue.build()); onChanged(); } else { planNodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder addChildLinks(int index, com.google.spanner.v1.PlanNode.ChildLink value) { if (childLinksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildLinksIsMutable(); childLinks_.add(index, value); onChanged(); } else { childLinksBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder addChildLinks( int index, com.google.spanner.v1.PlanNode.ChildLink.Builder builderForValue) { if (childLinksBuilder_ == null) { ensureChildLinksIsMutable(); childLinks_.add(index, builderForValue.build()); onChanged(); } else { childLinksBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder setChildLinks(int index, com.google.spanner.v1.PlanNode.ChildLink value) { if (childLinksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildLinksIsMutable(); childLinks_.set(index, value); onChanged(); } else { childLinksBuilder_.setMessage(index, value); } return this; } /**
/** * * * <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 Builder setPlanNodes(int index, com.google.spanner.v1.PlanNode.Builder builderForValue) { if (planNodesBuilder_ == null) { ensurePlanNodesIsMutable(); planNodes_.set(index, builderForValue.build()); onChanged(); } else { planNodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <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 Builder addPlanNodes(com.google.spanner.v1.PlanNode.Builder builderForValue) { if (planNodesBuilder_ == null) { ensurePlanNodesIsMutable(); planNodes_.add(builderForValue.build()); onChanged(); } else { planNodesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder setChildLinks( int index, com.google.spanner.v1.PlanNode.ChildLink.Builder builderForValue) { if (childLinksBuilder_ == null) { ensureChildLinksIsMutable(); childLinks_.set(index, builderForValue.build()); onChanged(); } else { childLinksBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder addAllChildLinks( java.lang.Iterable<? extends com.google.spanner.v1.PlanNode.ChildLink> values) { if (childLinksBuilder_ == null) { ensureChildLinksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childLinks_); onChanged(); } else { childLinksBuilder_.addAllMessages(values); } return this; } /**
private com.google.protobuf.RepeatedFieldBuilderV3< com.google.spanner.v1.PlanNode.ChildLink, com.google.spanner.v1.PlanNode.ChildLink.Builder, com.google.spanner.v1.PlanNode.ChildLinkOrBuilder> getChildLinksFieldBuilder() { if (childLinksBuilder_ == null) { childLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.spanner.v1.PlanNode.ChildLink, com.google.spanner.v1.PlanNode.ChildLink.Builder, com.google.spanner.v1.PlanNode.ChildLinkOrBuilder>( childLinks_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); childLinks_ = null; } return childLinksBuilder_; }
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder removeChildLinks(int index) { if (childLinksBuilder_ == null) { ensureChildLinksIsMutable(); childLinks_.remove(index); onChanged(); } else { childLinksBuilder_.remove(index); } return this; } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public Builder addChildLinks(com.google.spanner.v1.PlanNode.ChildLink.Builder builderForValue) { if (childLinksBuilder_ == null) { ensureChildLinksIsMutable(); childLinks_.add(builderForValue.build()); onChanged(); } else { childLinksBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Attributes relevant to the node contained in a group of key-value pairs. * For example, a Parameter Reference node could have the following * information in its metadata: * { * "parameter_reference": "param1", * "parameter_type": "array" * } * </pre> * * <code>.google.protobuf.Struct metadata = 6;</code> */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /**
/** * * * <pre> * List of child node `index`es and their relationship to this parent. * </pre> * * <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code> */ public com.google.spanner.v1.PlanNode.ChildLink.Builder addChildLinksBuilder() { return getChildLinksFieldBuilder() .addBuilder(com.google.spanner.v1.PlanNode.ChildLink.getDefaultInstance()); } /**