/** * * * <pre> * Time when the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } if (startTime_ != null) { output.writeMessage(2, getStartTime()); } if (lastUpdateTime_ != null) { output.writeMessage(3, getLastUpdateTime()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (progressPercent_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); } 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) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasLastUpdateTime()) { hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateTime().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.speech.v1.LongRunningRecognizeMetadata)) { return super.equals(obj); } com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; boolean result = true; result = result && (getProgressPercent() == other.getProgressPercent()); result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasLastUpdateTime() == other.hasLastUpdateTime()); if (hasLastUpdateTime()) { result = result && getLastUpdateTime().equals(other.getLastUpdateTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeMetadata other) { if (other == com.google.cloud.speech.v1.LongRunningRecognizeMetadata.getDefaultInstance()) return this; if (other.getProgressPercent() != 0) { setProgressPercent(other.getProgressPercent()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasLastUpdateTime()) { mergeLastUpdateTime(other.getLastUpdateTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }