/** * * * <pre> * Time of the most recent update. * </pre> * * <code>.google.protobuf.Timestamp update_time = 4;</code> */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getInputUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } if (progressPercent_ != 0) { output.writeInt32(2, progressPercent_); } if (startTime_ != null) { output.writeMessage(3, getStartTime()); } if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getInputUriBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); } if (progressPercent_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, progressPercent_); } if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getInputUri().hashCode(); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress other = (com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) obj; boolean result = true; result = result && getInputUri().equals(other.getInputUri()); result = result && (getProgressPercent() == other.getProgressPercent()); result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasUpdateTime() == other.hasUpdateTime()); if (hasUpdateTime()) { result = result && getUpdateTime().equals(other.getUpdateTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom( com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress other) { if (other == com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress .getDefaultInstance()) return this; if (!other.getInputUri().isEmpty()) { inputUri_ = other.inputUri_; onChanged(); } if (other.getProgressPercent() != 0) { setProgressPercent(other.getProgressPercent()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }