/** * * * <pre> * The name of the category representing the document. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * The name of the category representing the document. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.language.v1.ClassificationCategory other) { if (other == com.google.cloud.language.v1.ClassificationCategory.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The name of the category representing the document. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * The name of the category representing the document. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * The classifier's confidence of the category. Number represents how certain * the classifier is that this category represents the given text. * </pre> * * <code>float confidence = 2;</code> */ public Builder setConfidence(float value) { confidence_ = value; onChanged(); return this; } /**
/** * * * <pre> * The classifier's confidence of the category. Number represents how certain * the classifier is that this category represents the given text. * </pre> * * <code>float confidence = 2;</code> */ public Builder clearConfidence() { confidence_ = 0F; onChanged(); return this; }
/** * * * <pre> * The name of the category representing the document. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.language.v1.ClassificationCategory other) { if (other == com.google.cloud.language.v1.ClassificationCategory.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The name of the category representing the document. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * The classifier's confidence of the category. Number represents how certain * the classifier is that this category represents the given text. * </pre> * * <code>float confidence = 2;</code> */ public Builder setConfidence(float value) { confidence_ = value; onChanged(); return this; } /**
/** * * * <pre> * The classifier's confidence of the category. Number represents how certain * the classifier is that this category represents the given text. * </pre> * * <code>float confidence = 2;</code> */ public Builder clearConfidence() { confidence_ = 0F; onChanged(); return this; }