@java.lang.Override public com.google.cloud.language.v1beta2.EntityMention getDefaultInstanceForType() { return com.google.cloud.language.v1beta2.EntityMention.getDefaultInstance(); }
/** * * * <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 com.google.cloud.language.v1beta2.EntityMention.Builder addMentionsBuilder(int index) { return getMentionsFieldBuilder() .addBuilder(index, com.google.cloud.language.v1beta2.EntityMention.getDefaultInstance()); } /**
/** * * * <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 com.google.cloud.language.v1beta2.EntityMention.Builder addMentionsBuilder() { return getMentionsFieldBuilder() .addBuilder(com.google.cloud.language.v1beta2.EntityMention.getDefaultInstance()); } /**
public Builder mergeFrom(com.google.cloud.language.v1beta2.EntityMention other) { if (other == com.google.cloud.language.v1beta2.EntityMention.getDefaultInstance()) return this; if (other.hasText()) { mergeText(other.getText()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasSentiment()) { mergeSentiment(other.getSentiment()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }