public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (DisplayName.Length != 0) { hash ^= DisplayName.GetHashCode(); } if (timeSegmentStart_ != null) { hash ^= TimeSegmentStart.GetHashCode(); } if (timeSegmentEnd_ != null) { hash ^= TimeSegmentEnd.GetHashCode(); } if (confidence_ != null) { hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(Confidence); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(VideoClassificationPredictionResult other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.Type.Length != 0) { Type = other.Type; } if (other.timeSegmentStart_ != null) { if (timeSegmentStart_ == null) { TimeSegmentStart = new global::Google.Protobuf.WellKnownTypes.Duration(); } TimeSegmentStart.MergeFrom(other.TimeSegmentStart); } if (other.timeSegmentEnd_ != null) { if (timeSegmentEnd_ == null) { TimeSegmentEnd = new global::Google.Protobuf.WellKnownTypes.Duration(); } TimeSegmentEnd.MergeFrom(other.TimeSegmentEnd); } if (other.confidence_ != null) { if (confidence_ == null || other.Confidence != 0F) { Confidence = other.Confidence; } } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }