/** * * * <pre> * The mentions of this entity in the input document. The API currently * supports proper noun mentions. * </pre> * * <code>repeated .google.cloud.language.v1beta2.EntityMention mentions = 5;</code> */ public Builder addMentions( com.google.cloud.language.v1beta2.EntityMention.Builder builderForValue) { if (mentionsBuilder_ == null) { ensureMentionsIsMutable(); mentions_.add(builderForValue.build()); onChanged(); } else { mentionsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The mentions of this entity in the input document. The API currently * supports proper noun mentions. * </pre> * * <code>repeated .google.cloud.language.v1beta2.EntityMention mentions = 5;</code> */ public Builder addMentions( int index, com.google.cloud.language.v1beta2.EntityMention.Builder builderForValue) { if (mentionsBuilder_ == null) { ensureMentionsIsMutable(); mentions_.add(index, builderForValue.build()); onChanged(); } else { mentionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The mentions of this entity in the input document. The API currently * supports proper noun mentions. * </pre> * * <code>repeated .google.cloud.language.v1beta2.EntityMention mentions = 5;</code> */ public Builder setMentions( int index, com.google.cloud.language.v1beta2.EntityMention.Builder builderForValue) { if (mentionsBuilder_ == null) { ensureMentionsIsMutable(); mentions_.set(index, builderForValue.build()); onChanged(); } else { mentionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**