/** * * * <pre> * The parse label for the token. * </pre> * * <code>.google.cloud.language.v1.DependencyEdge.Label label = 2;</code> */ public Builder setLabel(com.google.cloud.language.v1.DependencyEdge.Label value) { if (value == null) { throw new NullPointerException(); } label_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * The parse label for the token. * </pre> * * <code>.google.cloud.language.v1.DependencyEdge.Label label = 2;</code> */ public Builder setLabel(com.google.cloud.language.v1.DependencyEdge.Label value) { if (value == null) { throw new NullPointerException(); } label_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Represents the head of this token in the dependency tree. * This is the index of the token which has an arc going to this token. * The index is the position of the token in the array of tokens returned * by the API method. If this token is a root token, then the * `head_token_index` is its own index. * </pre> * * <code>int32 head_token_index = 1;</code> */ public Builder setHeadTokenIndex(int value) { headTokenIndex_ = value; onChanged(); return this; } /**
/** * * * <pre> * Represents the head of this token in the dependency tree. * This is the index of the token which has an arc going to this token. * The index is the position of the token in the array of tokens returned * by the API method. If this token is a root token, then the * `head_token_index` is its own index. * </pre> * * <code>int32 head_token_index = 1;</code> */ public Builder clearHeadTokenIndex() { headTokenIndex_ = 0; onChanged(); return this; }
/** * * * <pre> * The parse label for the token. * </pre> * * <code>.google.cloud.language.v1.DependencyEdge.Label label = 2;</code> */ public Builder setLabelValue(int value) { label_ = value; onChanged(); return this; } /**
/** * * * <pre> * The parse label for the token. * </pre> * * <code>.google.cloud.language.v1.DependencyEdge.Label label = 2;</code> */ public Builder clearLabel() { label_ = 0; onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.language.v1.DependencyEdge other) { if (other == com.google.cloud.language.v1.DependencyEdge.getDefaultInstance()) return this; if (other.getHeadTokenIndex() != 0) { setHeadTokenIndex(other.getHeadTokenIndex()); } if (other.label_ != 0) { setLabelValue(other.getLabelValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Represents the head of this token in the dependency tree. * This is the index of the token which has an arc going to this token. * The index is the position of the token in the array of tokens returned * by the API method. If this token is a root token, then the * `head_token_index` is its own index. * </pre> * * <code>int32 head_token_index = 1;</code> */ public Builder setHeadTokenIndex(int value) { headTokenIndex_ = value; onChanged(); return this; } /**
/** * * * <pre> * Represents the head of this token in the dependency tree. * This is the index of the token which has an arc going to this token. * The index is the position of the token in the array of tokens returned * by the API method. If this token is a root token, then the * `head_token_index` is its own index. * </pre> * * <code>int32 head_token_index = 1;</code> */ public Builder clearHeadTokenIndex() { headTokenIndex_ = 0; onChanged(); return this; }
/** * * * <pre> * The parse label for the token. * </pre> * * <code>.google.cloud.language.v1.DependencyEdge.Label label = 2;</code> */ public Builder setLabelValue(int value) { label_ = value; onChanged(); return this; } /**
/** * * * <pre> * The parse label for the token. * </pre> * * <code>.google.cloud.language.v1.DependencyEdge.Label label = 2;</code> */ public Builder clearLabel() { label_ = 0; onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.language.v1.DependencyEdge other) { if (other == com.google.cloud.language.v1.DependencyEdge.getDefaultInstance()) return this; if (other.getHeadTokenIndex() != 0) { setHeadTokenIndex(other.getHeadTokenIndex()); } if (other.label_ != 0) { setLabelValue(other.getLabelValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }