/** * * * <pre> * The recognized entities in the input document. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 1;</code> */ public Builder addEntities(com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.add(builderForValue.build()); onChanged(); } else { entitiesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The recognized entities in the input document with associated sentiments. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 1;</code> */ public Builder addEntities( int index, com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.add(index, builderForValue.build()); onChanged(); } else { entitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The recognized entities in the input document with associated sentiments. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 1;</code> */ public Builder addEntities(com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.add(builderForValue.build()); onChanged(); } else { entitiesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Entities, along with their semantic information, in the input document. * Populated if the user enables * [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities]. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 3;</code> */ public Builder addEntities( int index, com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.add(index, builderForValue.build()); onChanged(); } else { entitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The recognized entities in the input document with associated sentiments. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 1;</code> */ public Builder setEntities( int index, com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.set(index, builderForValue.build()); onChanged(); } else { entitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The recognized entities in the input document. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 1;</code> */ public Builder setEntities( int index, com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.set(index, builderForValue.build()); onChanged(); } else { entitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Entities, along with their semantic information, in the input document. * Populated if the user enables * [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities]. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 3;</code> */ public Builder addEntities(com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.add(builderForValue.build()); onChanged(); } else { entitiesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The recognized entities in the input document. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 1;</code> */ public Builder addEntities( int index, com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.add(index, builderForValue.build()); onChanged(); } else { entitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Entities, along with their semantic information, in the input document. * Populated if the user enables * [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities]. * </pre> * * <code>repeated .google.cloud.language.v1beta2.Entity entities = 3;</code> */ public Builder setEntities( int index, com.google.cloud.language.v1beta2.Entity.Builder builderForValue) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); entities_.set(index, builderForValue.build()); onChanged(); } else { entitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**