public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.BoundingBox other) { if (other == com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance()) return this; if (other.getLeft() != 0) { setLeft(other.getLeft()); } if (other.getRight() != 0) { setRight(other.getRight()); } if (other.getBottom() != 0) { setBottom(other.getBottom()); } if (other.getTop() != 0) { setTop(other.getTop()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Left X coordinate. * </pre> * * <code>int32 left = 1;</code> */ public Builder setLeft(int value) { left_ = value; onChanged(); return this; } /**
/** * * * <pre> * Right X coordinate. * </pre> * * <code>int32 right = 2;</code> */ public Builder setRight(int value) { right_ = value; onChanged(); return this; } /**
/** * * * <pre> * Top Y coordinate. * </pre> * * <code>int32 top = 4;</code> */ public Builder setTop(int value) { top_ = value; onChanged(); return this; } /**
/** * * * <pre> * Top Y coordinate. * </pre> * * <code>int32 top = 4;</code> */ public Builder clearTop() { top_ = 0; onChanged(); return this; }
/** * * * <pre> * Bottom Y coordinate. * </pre> * * <code>int32 bottom = 3;</code> */ public Builder clearBottom() { bottom_ = 0; onChanged(); return this; }
/** * * * <pre> * Right X coordinate. * </pre> * * <code>int32 right = 2;</code> */ public Builder clearRight() { right_ = 0; onChanged(); return this; }
/** * * * <pre> * Bottom Y coordinate. * </pre> * * <code>int32 bottom = 3;</code> */ public Builder setBottom(int value) { bottom_ = value; onChanged(); return this; } /**
/** * * * <pre> * Left X coordinate. * </pre> * * <code>int32 left = 1;</code> */ public Builder clearLeft() { left_ = 0; onChanged(); return this; }