/** * * * <pre> * The content of the output text. * </pre> * * <code>string content = 1;</code> */ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /**
/** * * * <pre> * The content of the output text. * </pre> * * <code>string content = 1;</code> */ public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.language.v1beta2.TextSpan other) { if (other == com.google.cloud.language.v1beta2.TextSpan.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; onChanged(); } if (other.getBeginOffset() != 0) { setBeginOffset(other.getBeginOffset()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The API calculates the beginning offset of the content in the original * document according to the [EncodingType][google.cloud.language.v1beta2.EncodingType] specified in the API request. * </pre> * * <code>int32 begin_offset = 2;</code> */ public Builder setBeginOffset(int value) { beginOffset_ = value; onChanged(); return this; } /**
/** * * * <pre> * The content of the output text. * </pre> * * <code>string content = 1;</code> */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /**
/** * * * <pre> * The API calculates the beginning offset of the content in the original * document according to the [EncodingType][google.cloud.language.v1beta2.EncodingType] specified in the API request. * </pre> * * <code>int32 begin_offset = 2;</code> */ public Builder clearBeginOffset() { beginOffset_ = 0; onChanged(); return this; }