/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /**
/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.vision.v1.ImageAnnotationContext other) { if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.getPageNumber() != 0) { setPageNumber(other.getPageNumber()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /**
/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; }
/** * * * <pre> * If the file was a PDF or TIFF, this field gives the page number within * the file used to produce the image. * </pre> * * <code>int32 page_number = 2;</code> */ public Builder setPageNumber(int value) { pageNumber_ = value; onChanged(); return this; } /**
/** * * * <pre> * If the file was a PDF or TIFF, this field gives the page number within * the file used to produce the image. * </pre> * * <code>int32 page_number = 2;</code> */ public Builder clearPageNumber() { pageNumber_ = 0; onChanged(); return this; }
/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.vision.v1.ImageAnnotationContext other) { if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.getPageNumber() != 0) { setPageNumber(other.getPageNumber()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * If the file was a PDF or TIFF, this field gives the page number within * the file used to produce the image. * </pre> * * <code>int32 page_number = 2;</code> */ public Builder clearPageNumber() { pageNumber_ = 0; onChanged(); return this; }
/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /**
/** * * * <pre> * If the file was a PDF or TIFF, this field gives the page number within * the file used to produce the image. * </pre> * * <code>int32 page_number = 2;</code> */ public Builder setPageNumber(int value) { pageNumber_ = value; onChanged(); return this; } /**