/** * * * <pre> * Model to use for the feature. * Supported values: "builtin/stable" (the default if unset) and * "builtin/latest". * </pre> * * <code>string model = 3;</code> */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; onChanged(); return this; }
/** * * * <pre> * Model to use for the feature. * Supported values: "builtin/stable" (the default if unset) and * "builtin/latest". * </pre> * * <code>string model = 3;</code> */ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); return this; } /**
/** * * * <pre> * The feature type. * </pre> * * <code>.google.cloud.vision.v1.Feature.Type type = 1;</code> */ public Builder setType(com.google.cloud.vision.v1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Model to use for the feature. * Supported values: "builtin/stable" (the default if unset) and * "builtin/latest". * </pre> * * <code>string model = 3;</code> */ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); return this; } /**
/** * * * <pre> * Model to use for the feature. * Supported values: "builtin/stable" (the default if unset) and * "builtin/latest". * </pre> * * <code>string model = 3;</code> */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; onChanged(); return this; }
/** * * * <pre> * The feature type. * </pre> * * <code>.google.cloud.vision.v1.Feature.Type type = 1;</code> */ public Builder setType(com.google.cloud.vision.v1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Maximum number of results of this type. Does not apply to * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. * </pre> * * <code>int32 max_results = 2;</code> */ public Builder setMaxResults(int value) { maxResults_ = value; onChanged(); return this; } /**
/** * * * <pre> * Model to use for the feature. * Supported values: "builtin/stable" (the default if unset) and * "builtin/latest". * </pre> * * <code>string model = 3;</code> */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.vision.v1.Feature other) { if (other == com.google.cloud.vision.v1.Feature.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getMaxResults() != 0) { setMaxResults(other.getMaxResults()); } if (!other.getModel().isEmpty()) { model_ = other.model_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The feature type. * </pre> * * <code>.google.cloud.vision.v1.Feature.Type type = 1;</code> */ public Builder clearType() { type_ = 0; onChanged(); return this; }
/** * * * <pre> * The feature type. * </pre> * * <code>.google.cloud.vision.v1.Feature.Type type = 1;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**
/** * * * <pre> * Maximum number of results of this type. Does not apply to * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. * </pre> * * <code>int32 max_results = 2;</code> */ public Builder clearMaxResults() { maxResults_ = 0; onChanged(); return this; }
/** * * * <pre> * Model to use for the feature. * Supported values: "builtin/stable" (the default if unset) and * "builtin/latest". * </pre> * * <code>string model = 3;</code> */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); onChanged(); return this; } /**
/** * * * <pre> * Maximum number of results of this type. Does not apply to * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. * </pre> * * <code>int32 max_results = 2;</code> */ public Builder setMaxResults(int value) { maxResults_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.vision.v1.Feature other) { if (other == com.google.cloud.vision.v1.Feature.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getMaxResults() != 0) { setMaxResults(other.getMaxResults()); } if (!other.getModel().isEmpty()) { model_ = other.model_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Maximum number of results of this type. Does not apply to * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. * </pre> * * <code>int32 max_results = 2;</code> */ public Builder clearMaxResults() { maxResults_ = 0; onChanged(); return this; }
/** * * * <pre> * The feature type. * </pre> * * <code>.google.cloud.vision.v1.Feature.Type type = 1;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**
/** * * * <pre> * The feature type. * </pre> * * <code>.google.cloud.vision.v1.Feature.Type type = 1;</code> */ public Builder clearType() { type_ = 0; onChanged(); return this; }